Train Simulator NEXT
In This Topic
    GetAnimationTarget function
    In This Topic

    This function queries the target key position of an animation layer.

    Syntax

    Copy Code
    float GetAnimationTarget( int AnimationIndex );

    Parameters

    AnimationIndex

    Type: int

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

    Returns

    Returns a float with the target animation key position.

    If not found or an error occured, this function returns zero.

    See Also