GetPositionX - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
float Function GetPositionX() native
float Function GetPositionX() native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Debug.Trace("The box has an x position of: " + box.GetPositionX())
Debug.Trace("The box has an x position of: " + box.GetPositionX())
</source>
</syntaxhighlight>


<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; using the hardcoded property as a shortcut to this function
; using the hardcoded property as a shortcut to this function
Debug.Trace("The box has an x position of: " + box.X)
Debug.Trace("The box has an x position of: " + box.X)
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu