Difference between revisions of "0172"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 4: Line 4:
 
| description = Gets the [[heading]] of the character
 
| description = Gets the [[heading]] of the character
 
| syntax1    = 0172: [''var''] = actor [''char handle''] z_angle
 
| syntax1    = 0172: [''var''] = actor [''char handle''] z_angle
| p1t        = [''var'']
+
| p1t        = [''char handle'']
| p1d        = Variable to store the heading, a floating-point value
+
| p1d        = The handle of the character
| p2t        = [''char handle'']
+
| p2t        = [''var'']
| p2d        = The handle of the character
+
| p2d        = Variable to store the heading, a floating-point value
 
| native      = [[GET_CHAR_HEADING]]
 
| native      = [[GET_CHAR_HEADING]]
 
}}
 
}}

Latest revision as of 00:13, 20 November 2016

GTA III Vice City San Andreas GET_CHAR_HEADING


Description
Gets the heading of the character
Syntax
0172: [var] = actor [char handle] z_angle
Parameter
[char handle]
The handle of the character
[var]
Variable to store the heading, a floating-point value
Native analog
GET_CHAR_HEADING

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

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

Keywords

get, store, actor, character, angle, heading

See also

  • GTA III Vice City 0170, gets the heading of the player
  • GTA III Vice City San Andreas 0173, sets the heading of the character