Since engine version: 1.0 OC
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
string GetAnimationName(int animation_number, int attach_number);
- Animation number of the animation whose name to retrieve.
- [opt] If given, refers to the number of the attached mesh to query instead of the object's main mesh.
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.