SetCameraPosition: 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 move a specified player's camera to a specific location.
This function allows you to move a specified player's camera to a specific location if it is "fixed" (see [[setCameraMode]]).
   
   
==Syntax==  
==Syntax==  

Revision as of 12:28, 2 October 2006

This function allows you to move a specified player's camera to a specific location if it is "fixed" (see setCameraMode).

Syntax

bool setCameraPosition ( player thePlayer, float x, float y, float z )

Required Arguments

  • thePlayer: The player whose camera you wish to modify.
  • x: The x co-ordinate of the new position.
  • y: The x co-ordinate of the new position.
  • z: The x co-ordinate of the new position.

Returns

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

Example

See Also