Difference between revisions of "0171"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 0171=2,%1d% %2d% | description = Sets the Z angle of the player | p1 = Player handle | p2 = Z angle | game = GTA3, Vice City }} This s...)
 
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 0171=2,%1d% %2d%
+
| games      = {{Icon|3}} {{Icon|VC}}
| description = Sets the Z [[angle]] of the player
+
| command    = SET_PLAYER_HEADING
| p1          = Player handle
+
| description = Sets the [[heading]] of the player
| p2          = Z angle
+
| syntax1    = 0171: set_player [''player handle''] z_angle_to [''flt'']
| game        = GTA3, Vice City
+
| p1t        = [''player handle'']
 +
| p1d        = The [[0053|handle of the player]]
 +
| p2t        = [''flt'']
 +
| p2d        = Heading in degrees
 
}}
 
}}
This sets the Z angle of the player. The angle is in degrees. This opcode does not work in San Andreas so use [[0173]] instead.
 
  
==Keywords==
+
This opcode sets the heading (z angle) of the player.
set, player, angle
+
 
 +
{{direction|deg}}
 +
 
 +
== Keywords ==
 +
set, player, angle, heading
 +
 
 +
== 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