Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create Evac Chopper and fly to extraction LZ to pick up defector.
- hint " ""Hotel, Hotel tu FOXTROT, jesteśmy na pozycji czekamy na transport. Pośpieszcie się, odbiór.""";
- // Define Local Variables
- private ["_evacH1","_heli1","_heliCrew1","_heliGroup1","_evacH2","_heli2","_heliCrew2","_heliGroup2"];
- if (isServer) then{
- // Spawn Evac helicopter and fly to Evacuation Point after a short delay.
- _evacH1 = [markerPos "evacSpawn1", random 360, "LOP_RACS_UH60M", west] call BIS_fnc_spawnVehicle;
- // Set evacuation helicopter settings.
- _heli1 = _evacH1 select 0;
- _heliCrew1 = _evacH1 select 1;
- _heliGroup1 = _evacH1 select 2;
- _heli1 allowDamage false; // Would suck to get shot down during evac after finishing the whole mission.
- evacHeli1 = _heli1;
- heliGroup1 = _heliGroup1;
- // Set Evac helicopter waypoints and move to evacuation LZ.
- wp0 = heliGroup1 addwaypoint [getMarkerPos "RV-LZ1", 0];
- wp0 setWaypointType "LOAD";
- wp0 setWaypointSpeed "NORMAL";
- wp0 setWaypointBehaviour "CARELESS";
- wp0 setWaypointCombatMode "YELLOW";
- wp0 setWaypointStatements ["true","evacHeli1 land 'LAND';"];
- };
- sleep 2;
- if (isServer) then{
- // Spawn Evac helicopter and fly to Evacuation Point after a short delay.
- _evacH2 = [markerPos "evacSpawn2", random 360, "LOP_RACS_UH60M", west] call BIS_fnc_spawnVehicle;
- // Set evacuation helicopter settings.
- _heli2 = _evacH2 select 0;
- _heliCrew2 = _evacH2 select 1;
- _heliGroup2 = _evacH2 select 2;
- _heli2 allowDamage false; // Would suck to get shot down during evac after finishing the whole mission.
- evacHeli2 = _heli2;
- heliGroup2 = _heliGroup2;
- // Set Evac helicopter waypoints and move to evacuation LZ.
- wp1 = heliGroup2 addwaypoint [getMarkerPos "RV-LZ2", 0];
- wp1 setWaypointType "LOAD";
- wp1 setWaypointSpeed "NORMAL";
- wp1 setWaypointBehaviour "CARELESS";
- wp1 setWaypointCombatMode "YELLOW";
- wp1 setWaypointStatements ["true","evacHeli2 land 'LAND';"];
- };
- // Once chopper is down, wait for defector to get in.
- waitUntil {{alive _X && !(_X in crew evacHeli1 || _X in crew evacHeli2)} count ((units unit1)+(units unit2)+(units unit3)) <= 0};
- //sleep 60;
- if(isServer) then{
- // Once defector is in, fly to end mission marker/trigger and delete chopper/crew.
- wp2 = heliGroup1 addwaypoint [getMarkerPos "endMark1", 2];
- wp2 setwaypointtype "MOVE";
- wp2 setWaypointCombatMode "YELLOW";
- wp2 setWayPointStatements ["true","{deleteVehicle _x} forEach (crew evacHeli1); deleteVehicle evacHeli;"];
- // Once defector is in, fly to end mission marker/trigger and delete chopper/crew.
- wp3 = heliGroup2 addwaypoint [getMarkerPos "endMark2", 2];
- wp3 setwaypointtype "MOVE";
- wp3 setWaypointCombatMode "YELLOW";
- wp3 setWayPointStatements ["true","{deleteVehicle _x} forEach (crew evacHeli2); deleteVehicle evacHeli;"];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement