GetCameraRotation: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{deprecated}}
{{Needs_Checking|This function is now clientside only.}}  
 
__NOTOC__  
__NOTOC__  
 
{{Client function}}
[[Category:Depreciated]]
This function returns the local camera rotation.
 
'''OBSOLETED!'''
 
This function returns the rotation the specified player's camera would have if it's fixed (see [[setCameraMode]]).
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
float float float getCameraRotation ( player thePlayer )
float, float, float getCameraRotation ( )
</syntaxhighlight>  
</syntaxhighlight>  
===Required Arguments===
*'''thePlayer:''' The player whose camera rotation you wish to obtain.


===Returns===
===Returns===
Returns three [[float|floats]] containing the x, y and z rotation values if the function was successful, ''false'' otherwise.
Returns three [[float]]s containing the X, Y and Z rotation values.


==Example==  
==Example==  

Revision as of 15:32, 31 August 2007

Dialog-information.png This article needs checking.

Reason(s): This function is now clientside only.

This function returns the local camera rotation.

Syntax

float, float, float getCameraRotation ( )

Returns

Returns three floats containing the X, Y and Z rotation values.

Example

See Also