0054
Revision as of 04:57, 8 December 2015 by Spaceeinstein (talk | contribs)
Description
- Gets the player's coordinates point
Syntax
- 0054: store_player [player handle] position_to [var1] [var2] [var3]
Parameter
- [player handle]
- [var1]
- Variable to store the x-coordinate
- [var2]
- Variable to store the y-coordinate
- [var3]
- Variable to store the z-coordinate
This opcode gets the x, y, and z-coordinates of the center of mass of the player's body. It is roughly +1.04 z higher than the z-coordinate of the player's feet, which is used when setting the player's coordinates using 0055. If the player is in a vehicle, the opcode gets the coordinates of the center of mass of the vehicle's body instead.
Keywords
get, store, player, position, coordinates, location