
private ["_i","_k","_m","_n"];
heli removeAction action5;
heli removeAction action4;

playSound "intercom9"; 
heli vehicleChat "Basket Coming Up";

_k = (round pos)+1;
_n = (count array1) - 1;

for [{_i = pos}, {_i  <= -1.5 }, {_i=_i+0.05}] do
{
attwho attachTo [heli,[1.421,2.17,_i]];
attwho setDir 0;
    
_m = round _i;
    
    
    if (_m == _k) then {
        
        deleteVehicle  (array1 select _n);
        deleteVehicle  (array1 select _n-1);
        _n = _n - 2;
        _k = _k + 1;
        };
        
        if (_i >= -1.6) then {
            {deletevehicle _x;}foreach array1;
        };
   
    


    
     sleep 0.02;

};
removeAllWeapons crew1; crew1 attachTo [heli, [0.9,2.6,-2.3]]; crew1 setUnitPos "Middle"; crew1 setDir 180; crew1 switchMove "M119_Cargo";


action2 = heli addAction [("<t color=""#FF2400"">" + ("Basket Down") + "</t>"), "BasketDown.sqf", "" , 5, true, false,""  , "driver _target == player"];
action3 = heli addAction [("<t color=""#FF2400"">" + ("Take Basket in") + "</t>"), "DeleteBasket.sqf", "" , 5, true, false,""  , "driver _target == player"];