Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. // Create Evac Chopper and fly to extraction LZ to pick up defector.
  2.  
  3.  
  4.  
  5. hint " ""Hotel, Hotel tu FOXTROT, jesteśmy na pozycji czekamy na transport. Pośpieszcie się, odbiór.""";
  6.  
  7.  
  8.  
  9. // Define Local Variables
  10.  
  11. private ["_evacH1","_heli1","_heliCrew1","_heliGroup1","_evacH2","_heli2","_heliCrew2","_heliGroup2"];
  12.  
  13.  
  14.  
  15. if (isServer) then{
  16.  
  17. // Spawn Evac helicopter and fly to Evacuation Point after a short delay.
  18.  
  19. _evacH1 = [markerPos "evacSpawn1", random 360, "LOP_RACS_UH60M", west] call BIS_fnc_spawnVehicle;
  20.  
  21.  
  22.  
  23. // Set evacuation helicopter settings.
  24.  
  25. _heli1 = _evacH1 select 0;
  26.  
  27. _heliCrew1 = _evacH1 select 1;
  28.  
  29. _heliGroup1 = _evacH1 select 2;
  30.  
  31.  
  32.  
  33. _heli1 allowDamage false; // Would suck to get shot down during evac after finishing the whole mission.
  34.  
  35.  
  36.  
  37. evacHeli1 = _heli1;
  38.  
  39. heliGroup1 = _heliGroup1;
  40.  
  41.  
  42.  
  43.  
  44.  
  45. // Set Evac helicopter waypoints and move to evacuation LZ.
  46.  
  47. wp0 = heliGroup1 addwaypoint [getMarkerPos "RV-LZ1", 0];
  48.  
  49. wp0 setWaypointType "LOAD";
  50.  
  51. wp0 setWaypointSpeed "NORMAL";
  52.  
  53. wp0 setWaypointBehaviour "CARELESS";
  54.  
  55. wp0 setWaypointCombatMode "YELLOW";
  56.  
  57. wp0 setWaypointStatements ["true","evacHeli1 land 'LAND';"];
  58.  
  59.  
  60. };
  61.  
  62. sleep 2;
  63. if (isServer) then{
  64. // Spawn Evac helicopter and fly to Evacuation Point after a short delay.
  65.  
  66. _evacH2 = [markerPos "evacSpawn2", random 360, "LOP_RACS_UH60M", west] call BIS_fnc_spawnVehicle;
  67.  
  68.  
  69.  
  70. // Set evacuation helicopter settings.
  71.  
  72. _heli2 = _evacH2 select 0;
  73.  
  74. _heliCrew2 = _evacH2 select 1;
  75.  
  76. _heliGroup2 = _evacH2 select 2;
  77.  
  78.  
  79.  
  80. _heli2 allowDamage false; // Would suck to get shot down during evac after finishing the whole mission.
  81.  
  82.  
  83.  
  84. evacHeli2 = _heli2;
  85.  
  86. heliGroup2 = _heliGroup2;
  87.  
  88.  
  89.  
  90.  
  91.  
  92. // Set Evac helicopter waypoints and move to evacuation LZ.
  93.  
  94. wp1 = heliGroup2 addwaypoint [getMarkerPos "RV-LZ2", 0];
  95.  
  96. wp1 setWaypointType "LOAD";
  97.  
  98. wp1 setWaypointSpeed "NORMAL";
  99.  
  100. wp1 setWaypointBehaviour "CARELESS";
  101.  
  102. wp1 setWaypointCombatMode "YELLOW";
  103.  
  104. wp1 setWaypointStatements ["true","evacHeli2 land 'LAND';"];
  105.  
  106.  
  107. };
  108. // Once chopper is down, wait for defector to get in.
  109.  
  110. waitUntil {{alive _X && !(_X in crew evacHeli1 || _X in crew evacHeli2)} count ((units unit1)+(units unit2)+(units unit3)) <= 0};
  111. //sleep 60;
  112.  
  113.  
  114.  
  115.  
  116. if(isServer) then{
  117.  
  118. // Once defector is in, fly to end mission marker/trigger and delete chopper/crew.
  119.  
  120. wp2 = heliGroup1 addwaypoint [getMarkerPos "endMark1", 2];
  121.  
  122. wp2 setwaypointtype "MOVE";
  123.  
  124. wp2 setWaypointCombatMode "YELLOW";
  125.  
  126. wp2 setWayPointStatements ["true","{deleteVehicle _x} forEach (crew evacHeli1); deleteVehicle evacHeli;"];
  127.  
  128.  
  129.  
  130.  
  131. // Once defector is in, fly to end mission marker/trigger and delete chopper/crew.
  132.  
  133. wp3 = heliGroup2 addwaypoint [getMarkerPos "endMark2", 2];
  134.  
  135. wp3 setwaypointtype "MOVE";
  136.  
  137. wp3 setWaypointCombatMode "YELLOW";
  138.  
  139. wp3 setWayPointStatements ["true","{deleteVehicle _x} forEach (crew evacHeli2); deleteVehicle evacHeli;"];
  140.  
  141.  
  142. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement