setDirection

fun setDirection(direction: Int)

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 |

Parameters

direction

the direction for the NPC to face.