QueueDestructableAnimation
- Parameters
-
d destructable
target destructable
whichAnimation string
animation name, case-insensitive
- comment
-
Start new animation after the currently active animation finishes.
Allows for a smooth transition (where possible) unlike
SetDestructableAnimation
.The start/end behavior (like forced restart or transition to a different animation at the end) depends on the animation itself.
- note
-
Example (Lua, 2.0.3):
volcano = CreateDestructable(FourCC("Volc"), 0, 400, 0.0, 1.0, 0) SetDestructableAnimation(volcano, "birth") QueueDestructableAnimation(volcano, "death")
- patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native QueueDestructableAnimation takes destructable d, string whichAnimation returns nothing