SetCameraMode

From Multi Theft Auto: Wiki
Revision as of 04:12, 2 October 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Syntax

bool setCameraMode ( player thePlayer, string mode ) --- possible modes "player", "fixed"

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 or another moving object.
    • "fixed": Fixes the camera in a set position.

Returns

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

Example

See Also

Dialog-information.png This article needs checking.

Reason(s): Is the description correct?