Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. ["parachuteUnit", {
  2. params["_unit", "_vehicle", "_parachute", "_planeVelocity", ["_delay", 2]];
  3.  
  4. if !(isPlayer _unit) exitWith {};
  5.  
  6. systemChat "Go go go!";
  7.  
  8. _unit allowDamage false;
  9. _unit disableCollisionWith _v;
  10. moveOut _unit;
  11. unassignVehicle _unit;
  12. [_unit] allowGetIn false;
  13. _unit setDir (getDir _vehicle);
  14.  
  15. [{
  16. params["_unit", "_parachute", "_vehicle", "_planeVelocity"];
  17.  
  18. private _para = createVehicle[_parachute, [0,0,0], [], 0, "NONE"];
  19. _unit disableCollisionWith _para;
  20.  
  21. _para setPosASL (getPosASLVisual _unit);
  22. _para setVectorDirAndUp [vectorDirVisual _unit, vectorUpVisual _unit];
  23. _para setVelocity _planeVelocity;
  24.  
  25. _unit moveInDriver _para;
  26. _unit assignAsDriver _para;
  27. [_unit] allowGetIn true;
  28. [_unit] orderGetIn true;
  29.  
  30. _unit enableCollisionWith _vehicle;
  31. _unit allowDamage true;
  32.  
  33. }, [_unit, _parachute, _vehicle, _planeVelocity], _delay] call CBA_fnc_waitAndExecute;
  34.  
  35. }] call CBA_fnc_addEventHandler;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement