Skip to content

Direction

enum class Direction(
val orientationValue: Int,
val playerWalkValue: Int,
val npcWalkValue: Int,
val objectRotationValue: Int = -1
)
Example
on_world_start {
val start = Tile4.global(3222, 3218)
val guard = World.spawn(Assets.Npc.hans, start, facing = Direction.North)
val ahead = Tile4.global(start.tile.x + Direction.North.getDeltaX(), start.tile.z + Direction.North.getDeltaZ())
guard.teleport(ahead)
}
val orientationValue: Int
val playerWalkValue: Int
val npcWalkValue: Int
val objectRotationValue: Int
None
NorthWest
North
NorthEast
West
East
SouthWest
South
SouthEast
fun getDeltaX(): Int
fun getDeltaZ(): Int
val angle: Int