Skip to content

Commit

Permalink
Merge pull request #55 from McDiod/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
nomisum committed Mar 13, 2016
2 parents c55a148 + 6591e71 commit 2e0b8d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions objectives/detect_all_dead.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
if (!isServer) exitWith {};

checkForReal = {
_bool = compile (_this select 0);

_varName = _this select 0;
_bool = call compile (_this select 0);

for [{_i=0}, {_i<20}, {_i=_i+1}] do
{
if (!_bool) exitWith {};
sleep 1;
};
if (_bool && str _bool == "OPFOR_PRE_ELIMINATED") then {OPFOR_ELIMINATED = true;};
if (_bool && str _bool == "BLUFOR_PRE_ELIMINATED") then {BLUFOR_ELIMINATED = true;};
if (_bool && _varName == "OPFOR_PRE_ELIMINATED") then {OPFOR_ELIMINATED = true;};
if (_bool && _varName == "BLUFOR_PRE_ELIMINATED") then {BLUFOR_ELIMINATED = true;};
};

[] spawn {
Expand Down

0 comments on commit 2e0b8d2

Please sign in to comment.