GetCameraPosition: 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 returns the current position of the specified player's camera.
This function returns the position the player's camera would have if the camera mode is "fixed" (see [[setCameraMode]]).
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 12:24, 2 October 2006

This function returns the position the player's camera would have if the camera mode is "fixed" (see setCameraMode).

Syntax

float float float getCameraPosition ( player thePlayer )

Required Arguments

  • thePlayer: The player whose camera position you wish to obtain.

Returns

Returns three floats containing the x, y and z co-ordinate values if the function was successful, false otherwise.

Example

See Also