0172

From GTAMods Wiki
Revision as of 19:48, 28 December 2008 by Spaceeinstein (talk | contribs) (New page: {{OpCode | ini = 0172=2,%2d% %1d% | description = Gets the Z angle of the character | p1 = Actor handle | p2 = Variable to store the angle | game = GTA...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{games}}}


Description
Gets the Z angle of the character
Syntax
{{{syntax1}}}
Parameter
Native analog
GET_CHAR_HEADING

This gets the Z angle of the character and stores it into a variable. The angle is in degrees. Note that the parameters are swapped.

Sanny Builder example:

0172: 1@ = actor 0@ Z_angle

Note

The above format is more commonly used. The actual format of this opcode is in order:
0172=2,%1d% %2d%
The format to use depends on which INI file you use.

Keywords

get, store, actor, character, angle