Skip to content

Commit

Permalink
Merge pull request #251 from Vdauphin/FIX-lift_fries
Browse files Browse the repository at this point in the history
FIX: sometimes when ACE3 FRIES is activate you can't lift
  • Loading branch information
Vdauphin authored Nov 20, 2016
2 parents 46a7057 + 270d039 commit 174b20d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ while {(Alive player && vehicle player != player) && btc_log_hud} do {
_cargo_array = nearestObjects [_chopper, _array, 30];
if (count _array == 0) then {_cargo_array = [];};
_cargo_array = _cargo_array - [_chopper];
if (count _cargo_array > 0 && (typeOf (_cargo_array select 0)) isEqualTo "ACE_friesAnchorBar") then {_cargo_array deleteAt 0;};
if (count _cargo_array > 0 && ((_cargo_array select 0) isKindOf "ACE_friesGantry") OR (typeof (_cargo_array select 0) isEqualTo "ACE_friesAnchorBar")) then {_cargo_array deleteAt 0;};
if (count _cargo_array > 0) then {_cargo = _cargo_array select 0;} else {_cargo = objNull;};
if (({_cargo isKindOf _x} count _array) > 0) then {_can_lift = true;} else {_can_lift = false;};
if (!isNull _cargo) then {
Expand Down

0 comments on commit 174b20d

Please sign in to comment.