GetPositionX - ObjectReference

Revision as of 10:15, 13 July 2023 by Ingvion (talk | contribs) (→‎Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Returns the current X position of the reference.

SyntaxEdit

float Function GetPositionX() native

ParametersEdit

None.

Return ValueEdit

The current X position of the reference.

ExamplesEdit

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)

NotesEdit

The object reference's X property also returns this value.

See AlsoEdit