on_modal_opened
fun on_modal_opened(behaviour: ModalOpened.(subject: Entity) -> Unit)ModalOpened.(subject: Entity) -> Uniton_modal_opened { _ -> if (lock == LockLevel.Locked) entity.message("You can't move while this is open.")}Properties
Section titled “Properties”entity
Section titled “entity”val entity: Entityval lock: LockLevel