Skip to content

on_modal_opened

fun on_modal_opened(behaviour: ModalOpened.(subject: Entity) -> Unit)
ModalOpened.(subject: Entity) -> Unit

Entity

Example
on_modal_opened { _ ->
if (lock == LockLevel.Locked) entity.message("You can't move while this is open.")
}
val entity: Entity
val lock: LockLevel