apatuka Posted November 4, 2018 Greetings, i'm making some maps with Doombuilder 2 and i got a problem when monsters with specifed TID are dead doesn't trigger the action, instead it trigers even if they are alive (looks like the ThingCountName is equal to 0). I assigned TID 668 and 669 to each group of monsters, but it wont work, my map format is Doom in Hexen Format. #include "zcommon.acs" script 1 OPEN { While(ThingCountName(T_NONE, 669) > 0) Delay(35); Door_Open(15, 64); } script 2 OPEN { While(ThingCountName(T_NONE, 668) > 0) Delay(35); Floor_LowerByValue(18, 8, 64); } What i'm doing wrong ? Thanks ! 0 Quote Share this post Link to post
Kappes Buur Posted November 4, 2018 (edited) 29 minutes ago, apatuka said: What i'm doing wrong ? Thanks ! Nothing. From https://zdoom.org/wiki/ThingCountName ThingCountName will not count dead monsters, even though their things still exist and can be used, for instance, by SpawnSpot. Edited November 4, 2018 by Kappes Buur 1 Quote Share this post Link to post
Worst Posted November 4, 2018 If you want to count things regardless of their type, you should be using ThingCount instead. ThingCountName expects a class name string, so the T_NONE identifier shouldn't be used with it, as it maps to a number rather than a string. //ThingCount While (ThingCount (T_NONE, 669) > 0) Delay(35); //ThingCountName While (ThingCountName ("BaronOfHell", 669) > 0) Delay(35); 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.