Difference between revisions of "0176"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
| description = Gets the [[heading]] of the object
 
| description = Gets the [[heading]] of the object
 
| syntax1    = 0176: [''var''] = object [''object handle''] z_angle
 
| syntax1    = 0176: [''var''] = object [''object handle''] z_angle
| p1t        = [''var'']
+
| p1t        = [''object handle'']
| p1d        = Variable to store the heading
+
| p1d        = The handle of the object
| p2t        = [''object handle'']
+
| p2t        = [''var'']
| p2d        = The handle of the object
+
| p2d        = Variable to store the heading
 
| native      = [[GET_OBJECT_HEADING]]
 
| native      = [[GET_OBJECT_HEADING]]
 
}}
 
}}
Line 13: Line 13:
 
This opcode gets the heading (z angle) of the object.
 
This opcode gets the heading (z angle) of the object.
  
{{direction|deg=1}}
+
{{direction|deg}}
  
 
== Keywords ==
 
== Keywords ==

Latest revision as of 00:13, 20 November 2016

GTA III Vice City San Andreas GET_OBJECT_HEADING


Description
Gets the heading of the object
Syntax
0176: [var] = object [object handle] z_angle
Parameter
[object handle]
The handle of the object
[var]
Variable to store the heading
Native analog
GET_OBJECT_HEADING

This opcode gets the heading (z angle) of the object.

Compass Degrees
North
West 90°
South 180°
East 270°

Keywords

get, store, object, angle, heading

See also

  • GTA III Vice City San Andreas 0177, sets the heading of the object