
You have to build airfields over thermal vents. Eventually we hope to have some sort of better alternative, but it's that way to stop plane spamming (as planes are very powerful).
Moderator: Moderators
Code: Select all
CheckForSurvivors()
{
var id;
//this function checks if any friendly non-mine units are still alive and detonates the mine if not
for(id = get MAX_ID; id>0; --id) { //iterate through all units
if (get UNIT_ALLIED(id)) { //see if it's friendly
if ((8*65536)-1 != (get UNIT_HEIGHT(id))) { //check for units of radius != 8 (for some reason the radius is 1 unit smaller than it should be), should mean everything that's not a mine
id=(get (MAX_ID))+1; //this check is done because we've found a survivor, go back to the beginning of the unit list and wait a bit
sleep 5000;
}
}
}
//if this is reached there are no living non-mine friendlies so we detonate the mine
emit-sfx 4096 from base;
}