GetCameraPosition: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) mNo edit summary |
JonChappell (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function returns | This function returns the current position of the specified player's camera. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
float float float getCameraPosition ( player thePlayer ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePlayer:''' The player whose camera | *'''thePlayer:''' The player whose camera position you wish to obtain. | ||
===Returns=== | ===Returns=== | ||
Returns | Returns three [[float|floats]] containing the x, y and z co-ordinate values if the function was successful, ''false'' otherwise. | ||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
[[Category:Incomplete]] | [[Category:Incomplete]] | ||
Revision as of 04:25, 2 October 2006
This function returns the current position of the specified player's camera.
Syntax
float float float getCameraPosition ( player thePlayer )
Required Arguments
- thePlayer: The player whose camera position you wish to obtain.
Returns
Returns three floats containing the x, y and z co-ordinate values if the function was successful, false otherwise.