ShowDestructable
- Parameters
-
d destructable
flag boolean
- comment
-
Completely hides the destructable, disabling the effects it had (like height elevation).
Unlike hiding special effects, this can affect gameplay and will desync if used asynchronously.
- note
-
Example (Lua, 2.0.3):
volcano = CreateDestructable(FourCC("Volc"), 0, 0, 0.0, 1.0, 0) gryph = CreateUnit(Player(0), FourCC("hgry"), 0, 0, 0.0) -- Hippogryph is elevated by volcano while it is shown ShowDestructable(volcano, true) -- Hippogryph flies lower above actual terrain without a volcano underneath ShowDestructable(volcano, false)
- patch
-
1.07
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native ShowDestructable takes destructable d, boolean flag returns nothing