0054

From GTAMods Wiki
Jump to navigation Jump to search

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