CreateDeadDestructable
- Parameters
objectid integerThe rawcode of the destructable to be created.
x realThe x-coordinate of the destructable.
y realThe y-coordinate of the destructable.
face realRotation, destructable facing in degrees.
- 0 = East
- 90 = North
- 180 = West
- 270 = South
- -90 = South (wraps around)
scale realThe X-Y-Z scaling value of the destructable.
variation integerThe integer representing the variation of the destructable to be created.
- comment
Creates the dead version of a destructable at the coordinates ( x , y ).
Returns handle to created destructable, or null on failure.
- note
When no longer needed, use
RemoveDestructableto remove it from the game and avoid leaks (remember to null local variables in Jass).- note
If the destructable has no animations, it will show the destructable's default form. If it has a death animation, but no decay animation, then the object will be created in memory but will not visibly appear.
- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
destructable- Source code
native CreateDeadDestructable takes integer objectid, real x, real y, real face, real scale, integer variation returns destructable