# StopAnimation

Animations
5.1 OC
bool
int animation_number Number of the animation to stop.
Stops the animation corresponding to the given number (such as returned by PlayAnimation) and removes it from the corresponding slot in the animation stack. If there is a combination node associated to that number then both of the anmiations being combined are removed as well; if either or both of those are combination nodes again then they are also removed and so on. If the node to be removed is combined with another node then the combining node is also removed because there is not anything to combine anymore. The function returns `true` if the animation was removed or `false` otherwise (for example if there is no animation for the given number or if belongs to slot 0).
See the animation documentation for further explanations of the animation system.
StopAnimation
(GetRootAnimation(5));
Removes all animations in slot 5 so that it does not contain any animations anymore afterwards.
PlayAnimation
Clonk-Karl
2010-01