GetObjectRotation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
float float float getObjectRotation ( object theObject ) | float float float getObjectRotation ( object theObject ) | ||
Line 14: | Line 13: | ||
===Returns=== | ===Returns=== | ||
Returns three ''float'' if object exists, ''false'' in the first variable and ''nil'' in the other two if it's invalid. | Returns three ''float'' if object exists, ''false'' in the first variable and ''nil'' in the other two if it's invalid. | ||
==Example== | ==Example== |
Revision as of 17:06, 3 August 2007
Object rotation can be retrieved from objects in mapfiles or objects that are created in scripts.
Syntax
float float float getObjectRotation ( object theObject )
Required Arguments
- theObject: The object whose rotation will be retrieved
Returns
Returns three float if object exists, false in the first variable and nil in the other two if it's invalid.
Example
If a player points at an object with a gun, it will output it's rotation to the player.
Click to expand [+]
ServerClick to expand [+]
ClientSee Also