Difference between revisions of "00A0"

From GTAMods Wiki
Jump to navigation Jump to search
 
(page updates)
Line 1: Line 1:
<code>00A0=4,%1d% %2d% %3d% %4d%</code><br>
+
{{Icon|trilogy}} '''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 coordinates of the character
'''Parameter 3''': Variable to store Y-coordinate<br>
+
'''Syntax'''
'''Parameter 4''': Variable to store Z-coordinate<br>
+
: 00A0: store_actor [''char handle''] position_to [''flt1''] [''flt2''] [''flt3'']
'''Supports''': GTA3, Vice City, San Andreas<br>
+
: Actor.StorePos( [''char handle''], [''flt1''], [''flt2''], [''flt3''] )
 +
'''Parameter'''
 +
: [''char handle'']
 +
:: The handle of the character
 +
: [''flt1'']
 +
:: Variable to store x-coordinate
 +
: [''flt2'']
 +
:: Variable to store y-coordinate
 +
: [''flt3'']
 +
:: Variable to store z-coordinate
  
This opcode gets the position of an actor to X, Y, and Z-coordinates.
+
This opcode stores the current position of the character's x, y, and z-coordinates.
  
==Keywords==
+
== Keywords ==
 
get, store, actor, position
 
get, store, actor, position
 +
 +
== See also ==
 +
* [[00A1]], sets the character's coordinates
 +
 +
* [[0054]], gets the player's coordinates
 +
* [[00AA]], gets the vehicle's coordinates
 +
* [[01BB]], gets the object's coordinates
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Revision as of 18:04, 4 January 2015

GTA III Vice City San Andreas GET_CHAR_COORDINATES


Description

Gets the coordinates of the character

Syntax

00A0: store_actor [char handle] position_to [flt1] [flt2] [flt3]
Actor.StorePos( [char handle], [flt1], [flt2], [flt3] )

Parameter

[char handle]
The handle of the character
[flt1]
Variable to store x-coordinate
[flt2]
Variable to store y-coordinate
[flt3]
Variable to store z-coordinate

This opcode stores the current position of the character's x, y, and z-coordinates.

Keywords

get, store, actor, position

See also

  • 00A1, sets the character's coordinates
  • 0054, gets the player's coordinates
  • 00AA, gets the vehicle's coordinates
  • 01BB, gets the object's coordinates