Difference between revisions of "0170"

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

Latest revision as of 00:12, 20 November 2016

GTA III Vice City GET_PLAYER_HEADING


Description
Gets the heading of the player
Syntax
0170: [var] = player [player handle] z_angle
Parameter
[player handle]
The handle of the player
[var]
Variable to store the heading, a floating-point value

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

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

Keywords

get, store, player, angle, heading

See also

  • GTA III Vice City 0171, sets the heading of the player
  • GTA III Vice City San Andreas 0172, gets the heading of the character