Difference between revisions of "GetPositionZ - ObjectReference"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Kahmul m (Added some notes.) |
||
Line 22: | Line 22: | ||
== Notes == | == Notes == | ||
The object reference's Z property also returns this value. | *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 Also == | == See Also == |
Latest revision as of 15:23, 29 March 2012
Member of: ObjectReference Script
Returns the current Z position of the reference.
Syntax[edit | edit source]
float Function GetPositionZ() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The current Z position of the reference.
Examples[edit | edit source]
Debug.Trace("The box has an z position of: " + box.GetPositionZ())
Notes[edit | edit source]
- 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.