Category: Animations
Since engine version: 5.1 OC
Constant | Value | Description |
---|---|---|
ANIM_Loop | 0 | Once end is reached the value is reset to begin so the cycle restarts. |
ANIM_Hold | 1 | Once end is reached the value remains constant. |
ANIM_Remove | 2 | Once end is reached the corresponding animation is removed the same way as if StopAnimation were called to the exact point in time. For combination nodes the child node with the smaller weight is removed. |
var start = 0; var end = GetAnimationLength("Turn"); if(GetWind() < 0) { start = end; end = 0; } if(GetWind() != 0) SetAnimationPosition(GetRootAnimation(5), Anim_Linear(GetAnimationPosition(GetRootAnimation(5)), start, end, 7200/GetWind(), ANIM_Loop)); else SetAnimationPosition(GetRootAnimation(5), Anim_Const(GetAnimationPosition(GetRootAnimation(5))));