Version 1.1.2

More persistence
This commit is contained in:
Christian Franz
2022-08-11 12:33:28 +02:00
parent 7ad32b89c4
commit 78ff9a10e0
22 changed files with 1445 additions and 239 deletions

18
modules/sixthSense.lua Normal file
View File

@@ -0,0 +1,18 @@
sixthSense = {}
sixthSense.version = "1.0.0"
-- sniff out dead events and log them
function sixthSense:onEvent(event)
if event.id == 8 then -- S_EVENT_DEAD
if event.initiator then
local theObject = event.initiator
trigger.action.outText("DEAD event: " .. theObject:getName(), 30)
else
trigger.action.outText("DEAD event, no initiator", 30)
end
end
end
-- add event handler
world.addEventHandler(sixthSense)
trigger.action.outText("sixthSense v" .. sixthSense.version .. " loaded.", 30)