I gave all the cyberdemons in my map the TID 100. Then, I wrote a script that detects when all things with that TID are dead, and then does some stuff. This worked fine until I added a gameplay mod that replaces the monsters with custom monsters. the replacements did not inherit the TID that I gave them, and the script moved on to the next thing to do immediately. I want to map to work with or without any mod. If I could detect whether all hostile monsters are dead, that would be good enough.
How can I do that? It would specifically need to detect hostile monsters because some mods have friendly monsters. I searched the ZDoom Wiki and these forums and couldn't find the answer.
Blue Shadow's GetLevelInfo idea solved the problem.
I gave all the cyberdemons in my map the TID 100. Then, I wrote a script that detects when all things with that TID are dead, and then does some stuff. This worked fine until I added a gameplay mod that replaces the monsters with custom monsters. the replacements did not inherit the TID that I gave them, and the script moved on to the next thing to do immediately. I want to map to work with or without any mod. If I could detect whether all hostile monsters are dead, that would be good enough.
How can I do that? It would specifically need to detect hostile monsters because some mods have friendly monsters. I searched the ZDoom Wiki and these forums and couldn't find the answer.
Blue Shadow's GetLevelInfo idea solved the problem.
Edited by Empyre : report successShare this post
Link to post