Difference between revisions of "GetPos"
Jump to navigation
Jump to search
imported>DragoonWraith (→See Also: SetPos) |
imported>QQuix (Note added) |
||
Line 5: | Line 5: | ||
Returns the current world position of the object on the selected axis (X, Y, or Z) in float. | Returns the current world position of the object on the selected axis (X, Y, or Z) in float. | ||
===Notes=== | |||
If the player is swimming, PlayerRef.GetPos Z returns a value 105.29 units higher than the actual player Z position. | |||
[[Category: Functions]] | [[Category: Functions]] |
Revision as of 06:54, 9 July 2012
Syntax:
GetPos axis
Example:
GetPos Z
Returns the current world position of the object on the selected axis (X, Y, or Z) in float.
Notes
If the player is swimming, PlayerRef.GetPos Z returns a value 105.29 units higher than the actual player Z position.