GetCameraPosition: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__
{{Server client function}}
{{Server client function}}
{{DeprecatedWithAlt|getCameraMatrix|}}
{{DeprecatedWithAlt|getCameraMatrix|}}


This function returns the position the player's camera would have if the camera mode is fixed (see [[setCameraMode]]).
 
==Syntax==
This function returns the position that the player's camera would have if the camera mode was fixed (see [[setCameraMode]]).
 
==Procedural==
<syntaxhighlight lang="lua">
float float float getCameraPosition ()
</syntaxhighlight>
 
 
This function returns the X, Y and Z coordinates as three [[float|floats]] if the function was successful, ''false'' otherwise.
 
===Example===
This page lacks an example.
 
==Object-oriented==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
float float float getCameraPosition ( )
Vector3 Camera.getPosition ()
Vector3 Camera.getPosition ( )
</syntaxhighlight>
</syntaxhighlight>


==Return==
This function returns a vector with the coordinates if the function was successful, an empty vector otherwise.
*'''Procedural''': Returns three [[float|float]]s containing the X, Y and Z coordinates if the function was successful, ''false'' otherwise.
*'''OOP''': Returns a vector with the coordinates if the function was successful, an empty vector otherwise.


==Example==  
===Example===
This page lacks an example.
This page lacks an example.


==See Also==
==See Also==
{{Camera functions}}
{{Camera functions}}

Revision as of 19:21, 10 December 2013

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