GetCameraMatrix: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function gets the position of the camera and the point it is facing.
This function gets the position of the camera and the position of the point it is facing.


Note: The server-side version of this function returns the last camera matrix that was set by the server, and thus does not necessarily indicate the current matrix of the camera (since it may have been changed client-side).
Note: The server-side version of this function returns the last camera matrix that was set by the server, and thus does not necessarily indicate the current matrix of the camera (since it may have been changed client-side).

Revision as of 05:56, 16 March 2008

This function gets the position of the camera and the position of the point it is facing.

Note: The server-side version of this function returns the last camera matrix that was set by the server, and thus does not necessarily indicate the current matrix of the camera (since it may have been changed client-side).

Syntax

Click to collapse [-]
Server
float float float float float float getCameraMatrix ( player thePlayer )

Required Arguments

  • thePlayer: The player whose camera matrix is to be returned.
Click to collapse [-]
Client
float float float float float float getCameraMatrix ( )

Required Arguments

None.

Returns

Returns six float numbers if the argument(s) are valid; the first three indicate the position of the camera, the last three indicate the position of the point it's facing. Returns false if the arguments are invalid.

Example

See Also