GetCameraPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Flagged as deprecated)
No edit summary
Line 2: Line 2:
{{Server client function}}
{{Server client function}}
{{Deprecated}}
{{Deprecated}}
Please use [[getCameraMatrix]]
This function returns the position the player's camera would have if the camera mode is fixed (see [[setCameraMode]]).
This function returns the position the player's camera would have if the camera mode is fixed (see [[setCameraMode]]).
==Syntax==  
==Syntax==  

Revision as of 21:19, 20 April 2011

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.


Please use getCameraMatrix

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

Syntax

float float float getCameraPosition ( )

Returns

Returns three floats containing the x, y and z coordinates if the function was successful, false otherwise.

Example

This page lacks an example.

--Add an example here

See Also