Skip to content

on_self_hit

fun on_self_hit(behaviour: ProjectileHit.(target: Entity) -> Unit)
ProjectileHit.(target: Entity) -> Unit

Entity

Works with: Projectile

Example
node<Projectile>()
on_self_hit { target ->
target.message("You are hit!")
}
var producedOn: Int