SetDestructableAnimation

Parameters
ddestructable

target destructable

whichAnimationstring

animation name, case-insensitive

See SetUnitAnimation for the list of available tokens and the rules used to look up an whichAnimation.

comment

Immediately start playing new animation.

If the animation requires a change, cancel current animation and start new animation. There is no smooth transition.

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          SetDestructableAnimation    takes destructable d, string whichAnimation returns nothing