0172
- 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