Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Re: Zdoom Scripting Help

$
0
0
I think the easiest way is to give the enemies a special to activates a script when they die. Maybe use ACS_ExecuteAlways in case two enemies die simultaneously. The script should add 1 to a variable to keep track of how many have died, like:

Code:

int deadguys; //(number of enemies that have been killed)script 1 (void){  deadguys++;  if (deadguys>=4) { // (If 4 or more enemies have been killed, lower the floor)    Floor_LowerByValue (etc)  }}
Alternatively, you can have a script count how many enemies with a specific TID are left with ThingCount.

Statistics: Posted by Heisanevilgenius — Wed Apr 16, 2025 7:20 pm



Viewing all articles
Browse latest Browse all 3391

Trending Articles