GetPositionZ - ObjectReference

Revision as of 16:23, 29 March 2012 by imported>Kahmul (Added some notes.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Returns the current Z position of the reference.

SyntaxEdit

float Function GetPositionZ() native

ParametersEdit

None.

Return ValueEdit

The current Z position of the reference.

ExamplesEdit

Debug.Trace("The box has an z position of: " + box.GetPositionZ())

NotesEdit

  • The object reference's Z property also returns this value.
  • The Z position is usually a negative number.
  • The higher you are in the game (i.e. on a mountain, hill, ...), the more positive the value of the Z position will be. The lower you are, the more negative the value of the Z position will be.

See AlsoEdit