Difference between revisions of "0054"

From GTAMods Wiki
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 stores 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.
+
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

GTA III Vice City GET_PLAYER_COORDINATES


Description

Gets the player's coordinates point

Syntax

0054: store_player [player handle] position_to [var1] [var2] [var3]

Parameter

[player handle]
The handle of the player
[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

See also

  • GTA III Vice City 0055, sets the player's coordinates
  • GTA III Vice City San Andreas 00A0, gets the character's coordinates
  • GTA III Vice City San Andreas 00AA, gets the vehicle's coordinates
  • GTA III Vice City San Andreas 01BB, gets the object's coordinates