Difference between revisions of "0170"

From GTAMods Wiki
Jump to navigation Jump to search
(page updates)
m
Line 1: Line 1:
{{Icon|3}} {{Icon|VC}} '''GET_PLAYER_HEADING'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}} {{Icon|VC}}
'''Description'''
+
| command    = GET_PLAYER_HEADING
: Gets the heading of the player
+
| description = Gets the [[heading]] of the player
'''Syntax'''
+
| syntax1    = 0170: [''var''] = player [''player handle''] z_angle
: 0170: [''var''] = player [''player handle''] z_angle
+
| p1t        = [''var'']
'''Parameter'''
+
| p1d        = Variable to store the heading, a floating-point value
: [''var'']
+
| p2t        = [''player handle'']
:: Variable to store the heading
+
| p2d        = The [[0053|handle of the player]]
: [''player handle'']
+
}}
:: The handle of the [[0053|player]]
 
  
This opcode gets the heading (Z angle) of the player. Opcode [[0172]] is the equivalent for characters.
+
This opcode gets the heading (z angle) of the player.
  
{{direction|deg=1}}
+
{{direction|deg}}
  
 
== Keywords ==
 
== Keywords ==
 
get, store, player, angle, heading
 
get, store, player, angle, heading
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[0171]], sets the heading of the player
 +
* {{Icon|t}} [[0172]], gets the heading of the character

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

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