Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
apatuka

ThingCountName doesn't check dead monsters.

Recommended Posts

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 !

Share this post


Link to post

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);

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×