Train Simulator NEXT
In This Topic
    SetAnimationTarget function
    In This Topic

    This function sets the target key of an animation.

    Syntax

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

    Parameters

    AnimationIndex

    Type: int

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

    Position

    Type: int

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

    See Also