Difference between revisions of "0054"
Jump to navigation
Jump to search
(Created page with "{{Icon|3}} {{Icon|VC}} '''GET_PLAYER_COORDINATES''' <hr /> '''Description''' : Gets the player's coordinates point '''Syntax''' : 0054: store_player [''player handle''] positi...") |
m |
||
Line 9: | Line 9: | ||
:: The [[0053|handle of the player]] | :: The [[0053|handle of the player]] | ||
: [''var1''] | : [''var1''] | ||
− | :: Variable to store x-coordinate | + | :: Variable to store the x-coordinate |
: [''var2''] | : [''var2''] | ||
− | :: Variable to store y-coordinate | + | :: Variable to store the y-coordinate |
: [''var3''] | : [''var3''] | ||
− | :: Variable to store z-coordinate | + | :: Variable to store the z-coordinate |
− | This opcode | + | 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 == | == Keywords == | ||
− | get, store, player, position, coordinates | + | get, store, player, position, coordinates, location |
== See also == | == See also == |
Latest revision as of 04:57, 8 December 2015
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