Difference between revisions of "GetPos"
Jump to navigation
Jump to search
imported>QQuix (Note added) |
imported>QQuix (Fixed note) |
||
Line 7: | Line 7: | ||
===Notes=== | ===Notes=== | ||
If the player is swimming, PlayerRef.GetPos Z returns a value | If the player is swimming, PlayerRef.GetPos Z returns a value about 100 units higher than the actual player Z position. The actual difference dependes on the player race. | ||
[[Category: Functions]] | [[Category: Functions]] |
Latest revision as of 10:53, 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[edit | edit source]
If the player is swimming, PlayerRef.GetPos Z returns a value about 100 units higher than the actual player Z position. The actual difference dependes on the player race.