CreateDestructable

Parameters
objectid integer

The rawcode of the destructable to be created.

x real

The map x-coordinate of the destructable.

y real

The map y-coordinate of the destructable.

face real

Rotation, destructable facing in degrees.

  • 0 = East
  • 90 = North
  • 180 = West
  • 270 = South
  • -90 = South (wraps around)
scale real

The X-Y-Z scaling value of the destructable.

variation integer

The integer representing the variation of the destructable to be created.

comment

Creates a destructable on the ground at the coordinates ( x, y ).

Example:

call CreateDestructable('LTbr', 96, 0, 180, 1, 0) // Jass
myDestr = CreateDestructable(FourCC("LTbr"), 96, 0, 180, 1, 0) -- Lua
patch

1.00

Source
common.j
return type
destructable
Source code
native          CreateDestructable          takes integer objectid, real x, real y, real face, real scale, integer variation returns destructable