MowEmDown Posted December 11, 2021 I'll make it more clear, how do i make it so when you kill all enemies it ends the level? Like a cod zombies wave type thing, I use gzdoombuilder. 0 Quote Share this post Link to post
Kan3 Posted December 11, 2021 Wrong section. Anyhow, you need a script that will constantly check for the monsters to be alive. So, you could use a while loop: give to all of the monsters a tag and check, with ThingCount, if these are > 0 and when they are no more end the level 0 Quote Share this post Link to post
LavaWave Posted December 11, 2021 Yeah as Kan3 said https://zdoom.org/wiki/ThingCount 0 Quote Share this post Link to post
brick Posted December 12, 2021 (edited) There's a way to specify any action special in ZDoom without any scripts, by adding a line like this in a map definition in MAPINFO: SpecialAction = "Arachnotron", "Exit_Normal", 0 This will end the level if all of the Arachnotron in the level are killed (you can replace this with any other type of monster), but I'm not sure if there's a way to replace the monstertype with a more general "all monsters". If there is that'd be a much easier way to do it. EDIT: nope I was wrong, this only works for monsters that already have A_BossDeath, which excludes the majority of the enemy actors (and is why it worked for me for the Arachnotron without having to change anything else). Edited December 12, 2021 by brick 1 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.