Difference between revisions of "GetAngle"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Ashileedo
m (Reverted edit of Aaaas, changed back to last version by JDGBOLT)
imported>Bifmadeinsabbioni
m
Line 11: Line 11:
  X angle is the player's current vertical angle.
  X angle is the player's current vertical angle.


 
'''Special Note (relative to GetAngle called upon the player)'''
Z angle returns a number that goes from 0 to 360
X angle returns a number that goes (theorically) from -90 to 90.
The true in-game range is -89 to 89.
You get -89 if you're looking above you, and 89 if you're looking at your feet.
[[Category: Functions]]
[[Category: Functions]]
[[Category: Movement Functions]]
[[Category: Movement Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]

Revision as of 06:40, 9 May 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 Note:

When called upon the player character, Z angle is the player's current heading,
X angle is the player's current vertical angle.

Special Note (relative to GetAngle called upon the player)

Z angle returns a number that goes from 0 to 360
X angle returns a number that goes (theorically) from -90 to 90.
The true in-game range is -89 to 89.
You get -89 if you're looking above you, and 89 if you're looking at your feet.