GetCameraPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
This page lacks an example.
This page lacks an example.


{{New items|3.0140|1.4|
==Object-oriented==
==Object-oriented==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 23: Line 24:
===Example===
===Example===
This page lacks an example.
This page lacks an example.
 
}}
==See Also==
==See Also==
{{Camera functions}}
{{Camera functions}}

Revision as of 07:58, 20 February 2014

Template:DeprecatedWithAlt This function returns the position that the player's camera would have if the camera mode was fixed (see setCameraMode).

Procedural

float float float getCameraPosition ()

This function returns the X, Y and Z coordinates as three floats if the function was successful, false otherwise.

Example

This page lacks an example.

Object-oriented

Vector3 Camera.getPosition ()

This function returns a vector with the coordinates if the function was successful, an empty vector otherwise.

Example

This page lacks an example.

See Also