This is the map
No matter what I come up with for ThingCountName or ThingCount nothing works as intended.
Either the map ends right away or ends after 3 Barons are fraged.
I would like to have the map end after all Barons have been fraged.
Could someone, please, help me out.
Code: Select all
#include "zcommon.acs"
// 139:Thing_SpawnFacing (tid, type, nofog, newtid);
// 72:ThrustThing (angle, force, nolimit, tid);
script 1 (void)
{
delay ( 35*2);
Thing_SpawnFacing ( 111, 3, 0, 990);
delay ( 3);
Thing_SpawnFacing ( 112, 3, 0, 990);
delay ( 3);
Thing_SpawnFacing ( 113, 3, 0, 990);
delay ( 3);
Thing_SpawnFacing ( 114, 3, 0, 990);
delay ( 35);
ACS_ExecuteWait ( 3, 0, 0, 0, 0);
}
/*
insert a script tp count
how many Barons are in play
script 2 (void)
{
}
*/
script 3 (void)
{
delay ( 35);
While ( ThingCountName (T_BARON, 990) > 0)
Delay ( 3);
PrintBold ( s:"WELL DONE");
Delay ( 3);
Exit_Normal ( 0);
}
