0 Members and 1 Guest are viewing this topic.
{ _x addEventHandler ["KILLED", { _this execVM "somethingWentBoom.sqf" }] } forEach nearestObjects [this, ["CheeseFactory", "BigHouse"], 1000];
if (isNil "boomCounter") then { boomCounter = 0 };boomCounter = boomCounter + 1;// <-- Do stuff every time.if (boomCounter == 5) then{ // <-- Do stuff on 5th destroyed.};