Event
Damageable.HealthChange
When Entity has its Health changed, or because took damage or manually set through scripting or respawning
Syntax
Damageable.Subscribe("HealthChange", function(self, old_health, new_health)
-- il tuo codice
end)
Arguments
| Name | Type | Default | Description |
|---|---|---|---|
self
|
Damageable | — | — |
old_health
|
integer | — | — |
new_health
|
integer | — | — |