I'm making a map with 2 cyberdemons (and a whole lot of other monsters). In order to reveal the level exit switch I want both cyberdemons to die. I'm currently using the following code:
Code: Select all
#include "zcommon.acs"
int CD = 0;
//the following script is executed upon death of a cyberdemon using action 80 - script execute
script 4 (void)
{
CD=CD+1;
if(CD==2)
{
//reveals exit switch
FloorAndCeiling_LowerRaise(7,20,20);
}
}
Is there a different way to make sure both cyberdemons must be dead for the switch to be revealed?
Greetings from krautland!
daskraut