The Lua Hook MobjDeath can trigger on the intermission screen.
And you can get the message:
Here's some example code to try for yourself:
For added context, it errors at the "if mo and mo.valid" line.
And you can get the message:
Code:
This can only be used in a level!
Here's some example code to try for yourself:
Code:
addHook("MobjDeath", function(mo)
if mo and mo.valid
and mo.player and mo.player.valid
print("Something Funny")
end
end, MT_PLAYER)
Last edited: