Kaiser
March 30th, 2002, 08:56 PM
I need help with having a action triggered when a certain number of enemies are dead..
what I am trying to do is, in a room containing 6 demons, when all of those demons are dead, a door opens, I can get it to work, but here's the problem, it doesn't work if more than 2 are killed at the same time. I am trying to figure this out, but it only works if 1 demon is killed at a time. but I was thinking if someone used a Bfg on those demons, and more than 2 gets killed at once, nothing happends, and the player will get stuck...
can someone help me right away? as I really need to know asap...
here is a script of what I was trying to do:
include "#zcommon.acs"
int demonkill1;
script 1 (void)
{
demonkill1 = demonkill1+1;
if(demonkill1 == 6)
{
print (s: "TEST");
}
}
it works, but it doesn't work if 2 or more demons are killed at the same time....
thanks for your time..
EDIT: its fixed http://forums.newdoom.com/UBB/biggrin.gif
what I am trying to do is, in a room containing 6 demons, when all of those demons are dead, a door opens, I can get it to work, but here's the problem, it doesn't work if more than 2 are killed at the same time. I am trying to figure this out, but it only works if 1 demon is killed at a time. but I was thinking if someone used a Bfg on those demons, and more than 2 gets killed at once, nothing happends, and the player will get stuck...
can someone help me right away? as I really need to know asap...
here is a script of what I was trying to do:
include "#zcommon.acs"
int demonkill1;
script 1 (void)
{
demonkill1 = demonkill1+1;
if(demonkill1 == 6)
{
print (s: "TEST");
}
}
it works, but it doesn't work if 2 or more demons are killed at the same time....
thanks for your time..
EDIT: its fixed http://forums.newdoom.com/UBB/biggrin.gif