ObserveAfter('GameObject', 'OnDamageReceived', function (self) if not mod.enabled then return end -- you forgot to add this line. if self:IsPlayer() then self:OnDied() end end)
This mod is a very nice addition, but I've been having a few problems on running it. When I first load the game, it fails to read the mod when it goes through the process of loading the mods in CET, but then when I reload all mods it work just fine, but then I'm not able to turn it off unless I close down the game entirely. Other than those couple issues I've had, I'd say that this mod is very well done and does what's advertised, even if it takes a bit of finessing to get it to work sometimes. Would highly recommend.
4 comments
ObserveAfter('GameObject', 'OnDamageReceived', function (self)
if not mod.enabled then return end -- you forgot to add this line.
if self:IsPlayer() then
self:OnDied()
end
end)