FIXES FOR THE playableUnits bug in Arma 1.66

This commit is contained in:
Ghostrider-DbD- 2016-12-02 21:27:53 -05:00
parent 6438364731
commit d75a7bc837

View File

@ -102,7 +102,7 @@ _fn_playerWithinRange = {
{ {
if (isPlayer _x and _x distance _pos <= blck_TriggerDistance) then {_return = true}; if (isPlayer _x and _x distance _pos <= blck_TriggerDistance) then {_return = true};
}forEach allPlayers; // bug fix for arma 1.66 in which playableunits is broken }forEach allPlayers; // playableunits; changed for Arma 1.66
_return; _return;
}; };
@ -420,7 +420,7 @@ if (_playerInRange) then
_missionComplete = 1; _missionComplete = 1;
} else { } else {
if (_endIfPlayerNear) then { if (_endIfPlayerNear) then {
if ( { (isPlayer _x) && ([_x,_locations,20] call blck_fnc_playerInRange) && (vehicle _x == _x) } count playableunits > 0) then { if ( { (isPlayer _x) && ([_x,_locations,20] call blck_fnc_playerInRange) && (vehicle _x == _x) } count allPlayers > 0) then {
_missionComplete = 1; _missionComplete = 1;
}; };
}; };