Skip to content

on_self_entered

fun on_self_entered(behaviour: AreaEntered.(who: Entity) -> Unit)
AreaEntered.(who: Entity) -> Unit

Entity

Works with: WorldArea

Example
node<WorldArea>()
on_self_entered { who ->
who.message("The air is damp here: you are by the cave pool.")
}
var producedOn: Int