0171
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]
- Z angle in degrees
This opcode sets the heading (Z angle) of the player. Opcode 0173 is the equivalent for characters.
| Compass | Degrees | Radians |
|---|---|---|
| North | 0° | 0 |
| West | 90° | π/2 ≈ 1.57 |
| South | 180° | π ≈ 3.14 |
| East | 270° | 3π/2 ≈ 4.71 |
Keywords
set, player, angle, heading