SetCameraMode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
This function allows you to change a player's camera mode to either "following" or "fixed".  
This function allows you to change a player's camera mode to either "player" or "fixed".  
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 9: Line 9:
*'''thePlayer:''' The player whose camera you wish to modify.
*'''thePlayer:''' The player whose camera you wish to modify.
*'''mode:''' The mode to be set. It has the following possible values:
*'''mode:''' The mode to be set. It has the following possible values:
** '''"player":''' Sets the camera to follow a player or another moving object.
** '''"player":''' Sets the camera to follow a player.
** '''"fixed":''' Fixes the camera in a set position.
** '''"fixed":''' Fixes the camera in a set position/rotation.
   
   
===Returns===
===Returns===
Line 21: Line 21:


[[Category:Incomplete]]
[[Category:Incomplete]]
{{Needs_Checking|Is the description correct?}}

Revision as of 12:27, 2 October 2006

This function allows you to change a player's camera mode to either "player" 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.
    • "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