mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
trigger death handler on engine shutdown as well
This commit is contained in:
parent
8769819720
commit
186cbcc8cc
@ -193,7 +193,7 @@ HOGGIT.setZombie = function(group, spawner, state)
|
||||
end
|
||||
|
||||
HOGGIT._deathHandler = function(event)
|
||||
if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_DEAD then
|
||||
if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_DEAD or event.id == world.event.S_EVENT_ENGINE_SHUTDOWN then
|
||||
HOGGIT.debug_text("SOMETHING DEAD YO", 10)
|
||||
if not event.initiator then return end
|
||||
if not event.initiator.getGroup then return end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user