# SetAnimationPosition

Animations
5.1 OC
bool
int animation_number Animation number of the animation whose position to set.
array position Specifies how to compute the position of the animation. The value needs to be created with one of the "Anim_" animation functions.
Sets a new position for the given animation. Returns `true` if the new AVP was set or `false` if there is no such animation with the given number or the number refers to a combination node.
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
GetAnimationPosition
GetAnimationWeight
SetAnimationWeight
Anim_Const
Anim_Linear
Anim_X
Anim_Y
Anim_AbsX
Anim_AbsY
Anim_XDir
Anim_YDir
Anim_Action
Clonk-Karl
2010-01