Train Simulator NEXT
In This Topic
    PlaceToCamera function
    In This Topic

    Place the player camera to the given camera.

    Syntax

    Copy Code
    bool PlaceToCamera( int CameraIndex );

    Parameters

    CameraIndex

    Type: int

    The index of the camera. Use GetCameraCount to retrieve the count of cameras.

    Returns

    Returns true if the player camera was placed to the camera, false if not.

    See Also