SetAngle - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>DavidJCobb
(→‎Notes: turns out i had the euler convention almost exactly backwards for years on end, and i never noticed because i was *consistently* wrong)
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function SetAngle(float afXAngle, float afYAngle, float afZAngle) native
Function SetAngle(float afXAngle, float afYAngle, float afZAngle) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 20: Line 20:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Set the statue to be facing the other way (180 around Z)
; Set the statue to be facing the other way (180 around Z)
; Z is the compass direction
; Z is the compass direction
StatueProperty.SetAngle(0.0, 0.0, 180.0)
StatueProperty.SetAngle(0.0, 0.0, 180.0)
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu