update Direction
Deprecated
Deprecated. Use setDirection(direction) for consistency.
Replace with
setDirection(direction)Content copied to clipboard
Updates the spawn direction of the NPC.
Table of possible direction values:
| Id | Direction | Angle |
|:--:|:----------:|:-----:|
| 0 | North-West | 768 |
| 1 | North | 1024 |
| 2 | North-East | 1280 |
| 3 | West | 512 |
| 4 | East | 1536 |
| 5 | South-West | 256 |
| 6 | South | 0 |
| 7 | South-East | 1792 |Content copied to clipboard
Parameters
direction
the direction for the NPC to face.