Difference between revisions of "0172"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
Line 5: Line 5:
 
| syntax1    = 0172: [''var''] = actor [''char handle''] z_angle
 
| syntax1    = 0172: [''var''] = actor [''char handle''] z_angle
 
| p1t        = [''var'']
 
| p1t        = [''var'']
| p1d        = Variable to store the heading
+
| p1d        = Variable to store the heading, a floating-point value
 
| p2t        = [''char handle'']
 
| p2t        = [''char handle'']
 
| p2d        = The handle of the character
 
| p2d        = The handle of the character
Line 11: Line 11:
 
}}
 
}}
  
This opcode gets the heading (Z angle) of the character.
+
This opcode gets the heading (z angle) of the character.
  
 
{{direction|deg}}
 
{{direction|deg}}

Revision as of 01:08, 11 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
[var]
Variable to store the heading, a floating-point value
[char handle]
The handle of the character
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