Difference between revisions of "0172"
Jump to navigation
Jump to search
(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...) |
(page updates) |
||
| Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
| − | | | + | | games = {{Icon|t}} |
| − | | description = Gets the | + | | command = GET_CHAR_HEADING |
| − | | | + | | description = Gets the [[heading]] of the character |
| − | | | + | | syntax1 = 0172: [''var''] = actor [''char handle''] z_angle |
| − | | | + | | p1t = [''var''] |
| + | | p1d = Variable to store the heading | ||
| + | | p2t = [''char handle''] | ||
| + | | p2d = The handle of the character | ||
| native = [[GET_CHAR_HEADING]] | | native = [[GET_CHAR_HEADING]] | ||
}} | }} | ||
| − | |||
| − | |||
| − | + | This opcode gets the heading (Z angle) of the character. | |
| − | |||
| − | |||
| − | |||
| − | ==Keywords== | + | {{direction|deg=1}} |
| − | get, store, actor, character, angle | + | |
| + | == Keywords == | ||
| + | get, store, actor, character, angle, heading | ||
| + | |||
| + | == See also == | ||
| + | * {{Icon|3}} {{Icon|VC}} [[0170]], gets the heading of the player | ||
| + | * {{Icon|t}} [[0173]], sets the heading of the character | ||
Revision as of 07:21, 28 January 2016
- Description
- Gets the heading of the character
- Syntax
- 0172: [var] = actor [char handle] z_angle
- Parameter
- [var]
- Variable to store the heading
- [char handle]
- The handle of the character
- Native analog
- GET_CHAR_HEADING
This opcode gets the heading (Z angle) of the character.
| Compass | Degrees | Radians |
|---|---|---|
| North | 0° | 0 |
| West | 90° | π/2 ≈ 1.57 |
| South | 180° | π ≈ 3.14 |
| East | 270° | 3π/2 ≈ 4.71 |
Keywords
get, store, actor, character, angle, heading