QueueDestructableAnimation
- Parameters
d destructabletarget destructable
whichAnimation stringanimation 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 (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native QueueDestructableAnimation takes destructable d, string whichAnimation returns nothing