Advertisement
Guest User

airborne rangers lead the way

a guest
Jan 30th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. //Set the players altitude
  2. //[1900] call BIS_fnc_setHeight;
  3.  
  4. //Adds backpack item
  5. player addBackpack "B_Parachute";
  6.  
  7. //Set the parachute open altitude
  8. 0 = player spawn {waitUntil {getPosATL _this select 2 < 200};
  9.  
  10. //Addaction to open chute
  11. _this action ["openParachute"];};
  12.  
  13. _pos getMarkerPos "DZ";
  14.  
  15. _pos set [2, 2000];
  16.  
  17. "DZ" setMarkerPos _pos;
  18.  
  19. // Get a random direction
  20. _dir = random 359;
  21.  
  22. // Move the person 15 meters away from the destination (in the direction of _dir)
  23. player SetPos [(getMarkerPos _pos select 0)-10*sin(_dir),(getMarkerPos _pos select 1)-10*cos(_dir)];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement