Difference between revisions of "GetPos"
Jump to navigation
Jump to search
imported>Slserpent m |
imported>Slserpent m |
||
Line 5: | Line 5: | ||
Returns the current world position of the object on the selected axis (X, Y, or Z) in float. The player coord system appears to differ from the object coords; so be wary of getting and setting positions relative to the player. | Returns the current world position of the object on the selected axis (X, Y, or Z) in float. The player coord system appears to differ from the object coords; so be wary of getting and setting positions relative to the player with this function (use MoveTo instead). | ||
Revision as of 02:53, 13 June 2006
Syntax:
GetPos axis
Example:
GetPos Z
Returns the current world position of the object on the selected axis (X, Y, or Z) in float. The player coord system appears to differ from the object coords; so be wary of getting and setting positions relative to the player with this function (use MoveTo instead).