Evento
Damageable.Death
Scatenato quando l'entità muore
Mostra l'originale in inglese
When Entity Dies
Sintassi
Damageable.Subscribe("Death", function(self, last_damage_taken, last_bone_damaged, damage_type_reason, hit_from_direction, instigator, causer)
-- il tuo codice
end)
Argomenti
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
self
|
Damageable | — | — |
last_damage_taken
|
integer | — | — |
last_bone_damaged
|
string | — | — |
damage_type_reason
|
DamageType | — | — |
hit_from_direction
|
Vector | — | — |
instigator
facoltativo
|
Player? | — | — |
causer
facoltativo
|
Actor? | — | L'oggetto che ha causato il danno |