# GetRootAnimation

Animations
5.1 OC
int
int slot Slot whose topmost animation shall be returned.
Returns the number of the animation at the top of the given slot. This animation is combined with the animation of the next smaller slot number and the result of this combination will be combined with the animation at the top of the slot with the next higher slot number, or, if there is no such slot, be the final output displayed on the screen. If the slot contains more than one animation then the animation at the top is always a combination node which combines multiple animations or other combinations of animations to the result of the slot. Returns `nil` if there are no animations in the given slot.
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
StopAnimation
Clonk-Karl
2010-01