Difference between revisions of "01BB"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 01BB=4,%1d% %2d% %3d% %4d% | description = Gets the object's position | p1 = Existing object handle | p2 = Variable to store the X-coordinate | p...)
 
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''GET_OBJECT_COORDINATES'''
| ini        = 01BB=4,%1d% %2d% %3d% %4d%
+
<hr />
| description = Gets the object's position
+
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
| p1          = Existing object handle
+
'''Description'''
| p2          = Variable to store the X-coordinate
+
: Gets the object's position
| p3          = Variable to store the Y-coordinate
+
'''Syntax'''
| p4          = Variable to store the Z-coordinate
+
: 01BB: store_object [''object handle''] position_to [''var1''] [''var2''] [''var3'']
| game        = GTA3, Vice City, San Andreas
+
'''Parameter'''
| native      = [[GET_OBJECT_COORDINATES]]
+
: [''object handle'']
}}
+
:: The handle of the object
==Keywords==
+
: [''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 coordinates point of the specified object.
 +
}}</onlyinclude>
 +
 
 +
== Keywords ==
 
store, get, object, position, coordinate, location
 
store, get, object, position, coordinate, location
 +
 +
[[Category:OpCodes]]

Revision as of 06:12, 5 February 2012

GTA III Vice City San Andreas GET_OBJECT_COORDINATES


Description

Gets the object's position

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 coordinates point of the specified object.

Keywords

store, get, object, position, coordinate, location