Difference between revisions of "01BB"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{Icon|t}} '''GET_OBJECT_COORDINATES'''
+
{{OpCode
<hr />
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = GET_OBJECT_COORDINATES
: Gets the object's coordinates point
+
| description = Gets the object's coordinates point
'''Syntax'''
+
| syntax1    = 01BB: store_object [''object handle''] position_to [''var1''] [''var2''] [''var3'']
: 01BB: store_object [''object handle''] position_to [''var1''] [''var2''] [''var3'']
+
| p1t        = [''object handle'']
'''Parameter'''
+
| p1d        = The handle of the object
: [''object handle'']
+
| p2t        = [''var1'']
:: The handle of the object
+
| p2d        = Variable to store the x-coordinate
: [''var1'']
+
| p3t        = [''var2'']
:: Variable to store the x-coordinate
+
| p3d        = Variable to store the y-coordinate
: [''var2'']
+
| p4t        = [''var3'']
:: Variable to store the y-coordinate
+
| p4d        = Variable to store the z-coordinate
: [''var3'']
+
| native      = [[GET_OBJECT_COORDINATES]]
:: Variable to store the z-coordinate
+
}}
'''Native analog'''
 
: [[GET_OBJECT_COORDINATES]]
 
  
 
This opcode gets the x, y, and z-coordinates of the center of mass of the object.
 
This opcode gets the x, y, and z-coordinates of the center of mass of the object.
 +
 +
== Example ==
 +
:''See [[0392#Example]]''
  
 
== Keywords ==
 
== Keywords ==
Line 24: Line 25:
 
== See also ==
 
== See also ==
 
* {{Icon|t}} [[01BC]], sets the object's coordinates
 
* {{Icon|t}} [[01BC]], sets the object's coordinates
 
[[Category:OpCodes]]
 

Latest revision as of 05:40, 1 February 2017

GTA III Vice City San Andreas GET_OBJECT_COORDINATES


Description
Gets the object's coordinates point
Syntax
01BB: store_object [object handle] position_to [var1] [var2] [var3]
Parameter
[object handle]
The handle of the object
[var1]
Variable to store the x-coordinate
[var2]
Variable to store the y-coordinate
[var3]
Variable to store the z-coordinate
Native analog
GET_OBJECT_COORDINATES

This opcode gets the x, y, and z-coordinates of the center of mass of the object.

Example

See 0392#Example

Keywords

get, store, object, position, coordinates, location

See also

  • GTA III Vice City San Andreas 01BC, sets the object's coordinates