Difference between revisions of "00A0"

From GTAMods Wiki
Jump to navigation Jump to search
 
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>00A0=4,%1d% %2d% %3d% %4d%</code><br>
+
{{Icon|t}} '''GET_CHAR_COORDINATES'''
'''Description''': Gets the position of an actor<br>
+
<hr />
'''Parameter 1''': Actor handle<br>
+
'''Description'''
'''Parameter 2''': Variable to store X-coordinate<br>
+
: Gets the character's coordinates point
'''Parameter 3''': Variable to store Y-coordinate<br>
+
'''Syntax'''
'''Parameter 4''': Variable to store Z-coordinate<br>
+
: 00A0: store_actor [''char handle''] position_to [''var1''] [''var2''] [''var3'']
'''Supports''': GTA3, Vice City, San Andreas<br>
+
'''Parameter'''
 +
: [''char handle'']
 +
:: The handle of the character
 +
: [''var1'']
 +
:: Variable to store the x-coordinate
 +
: [''var2'']
 +
:: Variable to store the y-coordinate
 +
: [''var3'']
 +
:: Variable to store the z-coordinate
 +
'''Native analog'''
 +
: [[GET_CHAR_COORDINATES]]
  
This opcode gets the position of an actor to X, Y, and Z-coordinates.
+
This opcode stores the x, y, and z-coordinates of the center of mass of the character's body. It is roughly +1.04 z higher than the z-coordinate of the character's feet, which is used when setting the character's coordinates using [[00A1]]. If the character is in a vehicle, the opcode gets the coordinates of the center of mass of the vehicle's body instead.
  
==Keywords==
+
== Keywords ==
get, store, actor, position
+
get, store, actor, character, position, coordinates, location
 +
 
 +
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[0054]], gets the player's coordinates
 +
* {{Icon|t}} [[00A1]], sets the character's coordinates
 +
* {{Icon|t}} [[00AA]], gets the vehicle's coordinates
 +
* {{Icon|t}} [[01BB]], gets the object's coordinates
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 04:56, 8 December 2015

GTA III Vice City San Andreas GET_CHAR_COORDINATES


Description

Gets the character's coordinates point

Syntax

00A0: store_actor [char handle] position_to [var1] [var2] [var3]

Parameter

[char handle]
The handle of the character
[var1]
Variable to store the x-coordinate
[var2]
Variable to store the y-coordinate
[var3]
Variable to store the z-coordinate

Native analog

GET_CHAR_COORDINATES

This opcode stores the x, y, and z-coordinates of the center of mass of the character's body. It is roughly +1.04 z higher than the z-coordinate of the character's feet, which is used when setting the character's coordinates using 00A1. If the character is in a vehicle, the opcode gets the coordinates of the center of mass of the vehicle's body instead.

Keywords

get, store, actor, character, position, coordinates, location

See also

  • GTA III Vice City 0054, gets the player's coordinates
  • GTA III Vice City San Andreas 00A1, sets 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