SetCameraMode

From Multi Theft Auto: Wiki
Revision as of 11:03, 7 May 2007 by BrophY (talk | contribs)
Jump to navigation Jump to search

Please remember to set players camera mode back to "player" on resource unload, or you will encounter the invisible player 'bug' if players camera is still set to fixed

This function allows you to change a player's camera mode to either "player" or "fixed".

Syntax

bool setCameraMode ( player thePlayer, string mode )

Required Arguments

  • thePlayer: The player whose camera you wish to modify.
  • mode: The mode to be set. It has the following possible values:
    • "player": Sets the camera to follow a player.
    • "fixed": Fixes the camera in a set position/rotation.

Returns

Returns a bool with a value of true if the function was successful, false otherwise.

Example

See Also