Train Simulator NEXT
In This Topic
    GetCameraIndex function
    In This Topic

    This function queries a camera index by name.

    Syntax

    Copy Code
    int GetCameraIndex( string CameraName );

    Parameters

    CameraName

    Type: string

    The name of the camera.

    Returns

    Returns the index of the camera.

    Returns INT32_MAX if not found or an internal error occurred.