Progetto H — API Reference API & Scripting Documentation
Event Shared

Damageable.Death

When Entity Dies

Syntax

Lua
Damageable.Subscribe("Death", function(self, last_damage_taken, last_bone_damaged, damage_type_reason, hit_from_direction, instigator, causer)
    -- il tuo codice
end)

Arguments

Name Type Default Description
self Damageable
last_damage_taken integer
last_bone_damaged string
damage_type_reason DamageType
hit_from_direction Vector
instigator optional Player?
causer optional Actor? The object which caused the damage