Difference between revisions of "GetPositionX - ObjectReference"
Jump to navigation
Jump to search
imported>Jlundin |
|||
Line 19: | Line 19: | ||
<source lang="papyrus"> | <source 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> | |||
<source lang="papyrus"> | |||
; using the hardcoded property as a shortcut to this function | |||
Debug.Trace("The box has an x position of: " + box.X) | |||
</source> | </source> | ||
Latest revision as of 09:15, 13 July 2023
Member of: ObjectReference Script
Returns the current X position of the reference.
Syntax[edit | edit source]
float Function GetPositionX() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The current X position of the reference.
Examples[edit | edit source]
Debug.Trace("The box has an x position of: " + box.GetPositionX())
; using the hardcoded property as a shortcut to this function
Debug.Trace("The box has an x position of: " + box.X)
Notes[edit | edit source]
The object reference's X property also returns this value.