0170

From GTAMods Wiki
Revision as of 18:09, 12 January 2015 by Spaceeinstein (talk | contribs) (page updates)
Jump to navigation Jump to search

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
[player handle]
The handle of the player

This opcode gets the heading (Z angle) of the player. Opcode 0172 is the equivalent for characters.

Compass Degrees Radians
North 0
West 90° π/2 ≈ 1.57
South 180° π ≈ 3.14
East 270° 3π/2 ≈ 4.71

Keywords

get, store, player, angle, heading