Train Simulator NEXT
In This Topic
    SetAnimationPosition function
    In This Topic

    This function sets the position of an animation.

    Syntax

    Copy Code
    void SetAnimationPosition( int AnimationIndex, float Position );

    Parameters

    AnimationIndex

    Type: int

    The animation index. Use GetAnimationCount or GetAnimationIndex to query a valid index.

    Position

    Type: int

    The current animation position. Use FLT_MAX to set the animation to the maximum key position.

    See Also