on_self_item_used
fun on_self_item_used( item: ItemDefinition, behaviour: Interaction<Entity>.(user: Entity) -> Unit)Interaction<Entity>.(user: Entity) -> UnitWorks with: Npc // WorldObject // WorldItem // WorldProjection
node<Npc>()
on_self_item_used(Assets.Item.bones) { user -> self.speak("Thank you for the bones!") user.message("You hand over the bones.")}item: ItemDefinitionProperties
Section titled “Properties”target
Section titled “target”val target: T