Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. /*
  2.  
  3. Filename: Simple ParaDrop Script v0.97 eject.sqf
  4.  
  5. Author: Beerkan
  6.  
  7.  
  8.  
  9. Description:
  10.  
  11. A Simple Paradrop Script
  12.  
  13.  
  14.  
  15. Parameter(s):
  16.  
  17. 0: VEHICLE - vehicle that will be doing the paradrop (object)
  18.  
  19. 1: ALTITUDE - (optional) the altitude where the group will open their parachute (number)
  20.  
  21.  
  22.  
  23. Example:
  24.  
  25. 0 = [vehicle, altitude] execVM "eject.sqf"
  26.  
  27. */
  28.  
  29.  
  30. if (!isServer) exitWith {};
  31.  
  32. private ["_paras","_vehicle"];
  33.  
  34. _vehicle = _this select 0;
  35.  
  36. _paras = assignedcargo _vehicle;
  37.  
  38. ParaLandSafe =
  39.  
  40. {
  41. private ["_unit"];
  42.  
  43. _unit = _this select 0;
  44.  
  45. _unit action ["eject", vehicle _unit];
  46.  
  47. sleep 0.5;
  48. };
  49.  
  50. {
  51. unassignvehicle _x;
  52.  
  53. moveout _x;
  54.  
  55. sleep 0.5;//space the Para's out a bit so they're not all bunched up.
  56.  
  57. } forEach _paras;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement