Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Evento Server

Prop.TakeDamage

When Prop takes Damage

Non ancora tradotto

Sintassi

Lua
Prop.Subscribe("TakeDamage", function(self, damage, bone, type, from_direction, instigator, causer)
    -- il tuo codice
end)

Argomenti

Nome Tipo Predefinito Descrizione
self Prop — the object that takes the damage
damage integer — amount of damage
bone string — Damaged bone
type DamageType — Damage Type
from_direction Vector — Direction of the damage relative to the damaged actor
instigator facoltativo Player? — The player which caused the damage
causer facoltativo Actor? — The object which caused the damage