Guest User

Untitled

a guest
May 3rd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. _ChopDir = [getposATL aab, getposATL aa] call BIS_fnc_dirTo;
  2. _chop = [getposATL aab, _ChopDir, "B_Heli_Transport_01_F", WEST] call BIS_fnc_spawnVehicle;
  3. (_chop select 0) setcaptive true;
  4. {_x moveincargo (_chop select 0);} foreach (units group player);
  5. {_x allowdamage false;_x setcaptive true;} foreach (units (_chop select 2) + [(_chop select 0)]);
  6. [(_chop select 2),(_chop select 0),getposATL aa] SPAWN {
  7. _start = (_this select 2);
  8. (_this select 0) move _start;
  9. (_this select 0) setbehaviour "CARELESS";
  10. (_this select 0) allowfleeing 0;
  11. (_this select 1) flyinheight 50;
  12. waitUntil {sleep 1; vehicle player distance _start < 700};
  13. _pPosi = getposATL (vehicle player);
  14. _startC = [(_pPosi select 0)+2000 -(random 4000), (_pPosi select 1)+2000 -(random 4000), 50];
  15. while {_startC distance vehicle player < 1000} do {sleep 0.1;_startC = [(_pPosi select 0)+2000 -(random 4000), (_pPosi select 1)+2000 -(random 4000), 50];};
  16. _obj = createVehicle ["Land_HelipadEmpty_F",_start, [], 0, "NONE"];
  17. waitUntil {sleep 1; unitready leader (_this select 1) || {!(player in (_this select 1))}};
  18. (_this select 1) land "GET IN";
  19. waitUntil {sleep 1; (getposATL (_this select 1) select 2) < 6 || {!(player in (_this select 1))}};
  20. (_this select 1) animateDoor ['door_R', 1];
  21. (_this select 1) animateDoor ['door_L', 1];
  22. waitUntil {sleep 1; (getposATL (_this select 1) select 2) < 1.5 || {!(player in (_this select 1))}};
  23. {
  24. if (vehicle _x == (_this select 1)) then {
  25. unassignvehicle _x; _x action ["Eject",vehicle _x];
  26. };
  27. } foreach units group player;
  28. sleep 9;
  29. (_this select 1) animateDoor ['door_R', 0];
  30. (_this select 1) animateDoor ['door_L', 0];
  31. };
Advertisement
Add Comment
Please, Sign In to add comment