Skip to content

define_area

fun RiftPlugin.define_area(
key: String,
from: Tile3,
to: Tile3,
plane: Int? = …,
shard: Int? = …
): AreaRef
Example
val pond = define_area("duck_pond", from = Tile3(3200, 3200), to = Tile3(3210, 3210))
on_enter_area(pond) { who -> who.message("Quack.") }
key: String
from: Tile3

Tile3

to: Tile3

Tile3

plane: Int?
shard: Int?