Difference between revisions of "0171"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Icon|3}} {{Icon|VC}} '''SET_PLAYER_HEADING'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}} {{Icon|VC}}
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| command    = SET_PLAYER_HEADING
'''Description'''
+
| description = Sets the [[heading]] of the player
: Sets the heading of the player
+
| syntax1    = 0171: set_player [''player handle''] z_angle_to [''flt'']
'''Syntax'''
+
| p1t        = [''player handle'']
: 0171: set_player [''player handle''] z_angle_to [''flt'']
+
| p1d        = The [[0053|handle of the player]]
'''Parameter'''
+
| p2t        = [''flt'']
: [''player handle'']
+
| p2d        = Heading in degrees
:: The handle of the player
+
}}
: [''flt'']
 
:: Z [[angle]] in degrees
 
  
This opcode sets the heading (Z angle) of the player. Opcode [[0173]] is the equivalent for characters.
+
This opcode sets the heading (z angle) of the player.
}}</onlyinclude>
 
  
{{direction|deg=1}}
+
{{direction|deg}}
  
 
== Keywords ==
 
== Keywords ==
 
set, player, angle, heading
 
set, player, angle, heading
  
[[Category:OpCodes]]
+
== See also ==
 +
* {{Icon|3}} {{Icon|VC}} [[0170]], gets the heading of the player
 +
* {{Icon|t}} [[0173]], sets the heading of the character

Latest revision as of 01:00, 14 November 2016

GTA III Vice City SET_PLAYER_HEADING


Description
Sets the heading of the player
Syntax
0171: set_player [player handle] z_angle_to [flt]
Parameter
[player handle]
The handle of the player
[flt]
Heading in degrees

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

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

Keywords

set, player, 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