Advertisement
Guest User

Rearm

a guest
Jan 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. _unit = _this select 0;
  2.  
  3. // Don't start the script until the unit is below a height of 2, and make sure they hold that
  4. // height for at least 3 seconds.
  5. WaitUntil{(getPos _unit select 2)<2};
  6. sleep 3;
  7. if((getPos _unit select 2)>2) exitWith{};
  8. WaitUntil{speed _unit < 2};
  9. sleep 3;
  10. if(speed _unit > 5) exitWith{};
  11.  
  12. // Make sure unit is inside one of these lists (trigger areas)
  13. if( not (_unit in list rearm1) and not (_unit in list rearm2) and not (_unit in list rearm3) and not (_unit in list rearm4)) exitWith{};
  14.  
  15.  
  16.  
  17. _unit VehicleChat "Rearming...";
  18. sleep 10;
  19. _unit setVehicleAmmo 1;
  20. _unit VehicleChat "Finished.";
  21.  
  22. if(true) exitWith{};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement