# GetAnimationPosition

Animations
5.1 OC
int
int animation_number Animation number of the animation whose position to retrieve.
Returns the position of the animation refered to by the given number. The returned value lies between 0 and GetAnimationLength(GetAnimationName(animation_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.
SetAnimationPosition
(animation_number, Anim_Const(GetAnimationPosition(animation_number)+100));
Script for a timer: For each call the animation is advanced by 100 milliseconds. If the timer is called periodically in same intervals Anim_Linear can be used instead.
PlayAnimation
SetAnimationPosition
GetAnimationWeight
SetAnimationWeight
Clonk-Karl
2010-01