Difference between revisions of "GetAngle"
Jump to navigation
Jump to search
imported>Bifmadeinsabbioni m |
imported>ShadowDancer (Redid formatting, removed redundant info) |
||
Line 7: | Line 7: | ||
Returns the current world rotation angle of the object on the selected axis (X, Y, or Z) in float. | Returns the current world rotation angle of the object on the selected axis (X, Y, or Z) in float. | ||
'''Special | '''Special Notes (relative to GetAngle called upon the player)''' | ||
*Z angle returns a number that goes from 0 to 360 depending on the player's current heading. | |||
*X angle returns a number that goes (theorically) from -90 to 90. The true in-game range is -89 to 89, with -89 if the player is looking above himself, and 89 if player is looking at his feet. | |||
The true in-game range is -89 to 89 | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Movement Functions]] | [[Category: Movement Functions]] | ||
[[Category: Condition Functions]] | [[Category: Condition Functions]] |
Revision as of 20:14, 16 July 2006
Syntax:
GetAngle axis
Example:
GetAngle Z
Returns the current world rotation angle of the object on the selected axis (X, Y, or Z) in float.
Special Notes (relative to GetAngle called upon the player)
- Z angle returns a number that goes from 0 to 360 depending on the player's current heading.
- X angle returns a number that goes (theorically) from -90 to 90. The true in-game range is -89 to 89, with -89 if the player is looking above himself, and 89 if player is looking at his feet.