# GetAnimationName

Animations
5.1 OC
string
int animation_number Animation number of the animation whose name to retrieve.
Returns the name of the animation with the given number. If there is no such animation with the given number or the number refers to a combination node then this function returns `nil`.
See the animation documentation for further explanations of the animation system.
if
(GetAnimationName(GetRootAnimation(5)) == "Walk") StopAnimation(GetRootAnimation(5));
If there is only one animation being played in slot 5 and its name is "Walk" then that animation is stopped.
PlayAnimation
StopAnimation
GetRootAnimation
Clonk-Karl
2010-01