Merge pull request #17 from Ghostrider-DbD-/v6.44-Build-16

FIXES FOR THE playableUnits bug in Arma 1.66
This commit is contained in:
Ghostrider-DbD- 2016-12-02 21:38:17 -05:00 committed by GitHub
commit 8c6520f624

View File

@ -102,7 +102,7 @@ _fn_playerWithinRange = {
{
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;
};
@ -420,7 +420,7 @@ if (_playerInRange) then
_missionComplete = 1;
} else {
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;
};
};