Crash your game if you kill any civilians
Avatar

Makes it so you CTD if you kill any civilians, is it possible?

Fun
Avatar
local function f(...)
    assert(false, "Don't kill civies, you chop")
end
Hooks:PostHook(CivilianDamage, "die", "CTD_on_CivilianDamage_die", f)
Hooks:PostHook(HuskCivilianDamage, "die", "CTD_on_HuskCivilianDamage_die", f)

Hook into:
"lib/units/civilians/HuskCivilianDamage"

Avatar

Thanks Dom, appreciate it!

42 1162