Skip to content

on_player_option

fun on_player_option(
option: String,
behaviour: Interaction<Actor>.(subject: Entity) -> Unit
)
Interaction<Actor>.(subject: Entity) -> Unit

Entity

Example
on_player_option("Follow") { player ->
player.message("You follow the other player.")
target.message("You are being followed.")
}
option: String
val target: T