Advertisement
Morbo513

Extract

Jun 3rd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.51 KB | None | 0 0
  1. if (isServer) then
  2. {
  3. hint "Extract Inbound to EZ Milan";
  4.  
  5. private _type = "rhs_ch_47f";
  6. private _side = "WEST";
  7. private _side2 = WEST;
  8.  
  9. private _crew = "B_Helipilot_F";
  10. private _crewno = 3;
  11.  
  12. private _pos_Spawn = getMarkerPos "EX2_S";
  13. _pos_Spawn vectorAdd [0,0,30];
  14.  
  15. private _EX1LZ = getpos LZ_MILA;
  16.  
  17. sleep 600;
  18.  
  19. private _EXH1 =  createVehicle [_type,_pos_Spawn,[],0,"FLY"];
  20. _EXH1 engineOn true;
  21. private _EXH1_G = createGroup [_side2, true];
  22. private _EXH1_U = _EXH1_G createUnit [_crew, _pos_Spawn, [], 0, "NONE"];
  23. private _EXH1_L = group _EXH1_U selectLeader _EXH1_U;
  24. _EXH1_U moveindriver _EXH1;
  25. private _Hcounter = 0;
  26. while {_Hcounter < _crewno} do {
  27.     _newHC = _crew createUnit [_pos_Spawn, _EXH1_G, "this moveinAny _EXH1;"];
  28.     _Hcounter = _Hcounter + 1; };
  29.    
  30. EXH2 = _EXH1;
  31. EXH2_G = _EXH1_G;
  32.    
  33. private _EXH1_DIR = _EXH1 getDir _EX1LZ;
  34. _EXH1 setDir _EXH1_DIR;
  35. _EXH1 setPos [(getPos _EXH1) select 0, (getpos _EXH1) select 1, 10];
  36.  
  37. _EXH1_G setCombatMode "BLUE";
  38. _EXH1_G setBehaviour "CARELESS";
  39. _EXH1_G setSpeedMode "FULL";
  40.  
  41.  
  42. // [_EXH1_G, _EX1LZ, LZ_STAR] spawn BIS_fnc_wpLand;
  43.  
  44. _EXH1_W1 = _EXH1_G addWaypoint [_EX1LZ, 0];
  45. _EXH1_W1 setWaypointType "LOAD";
  46. _EXH1_W1 setwaypointstatements ["true", "(vehicle this) LAND 'GET IN';"];
  47.  
  48. fuckoff2 = 0;
  49. _EXH1 addAction ["<t color='#00FF00'>LIFT</t>",{params ["_caller"]; fuckoff2 = fuckoff2 + 1;},[],1.5,true,true,"","true",5,false,"",""];
  50. waitUntil {fuckoff2>0};
  51.  
  52. _EXH1_W2 = _EXH1_G addWaypoint [_pos_Spawn,0];
  53. _EXH1_W2 setWaypointType "TR UNLOAD";
  54.  
  55. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement