Difference between revisions of "GetAngleX - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Dragoonwraith
(→‎See Also: adding GetAngle)
imported>Chesko
(The note about actors not being able to rotate about the X axis is incorrect; this should refer to the Y axis instead.)
Line 23: Line 23:
== Notes ==
== Notes ==


* Actors, including the player, generally cannot rotate about the X axis, and will therefore almost always return 0.
* The X angle for Actors is a value from -90 to 90.


== See Also ==
== See Also ==

Revision as of 10:54, 8 September 2012

Member of: ObjectReference Script

Gets this object's rotation around the x axis.

Syntax

float Function GetAngleX() native

Parameters

None.

Return Value

This object's rotation around the x axis, in degrees.

Examples

Debug.Trace("We are rotated " + GetAngleX() + " degrees around the X axis")

Notes

  • The X angle for Actors is a value from -90 to 90.

See Also