Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. sleep 0.1;
  2. while {true} do
  3. {
  4. sleep 5;
  5. if (player distance aidstation1 > 30) then
  6. {
  7. if ("ACE_Medkit" in (magazines player)) then
  8. {
  9. player removeMagazine "ACE_Medkit";
  10. hintSilent "You can only use medkits while within 15 meters of the field hospital";
  11. };
  12. _has_rack = [player] call ACE_fnc_HasRuck;
  13. if (_has_rack) then
  14. {
  15. _MagazinesList = [player] call ACE_fnc_RuckMagazinesList;
  16. {
  17. //hint format["Name %1", _x select 0];
  18. _x = _x select 0;
  19. if (_x == "ACE_Medkit") then
  20. {
  21. [player, "MAG", "ACE_Medkit"] call ACE_fnc_RemoveGear;
  22. hintSilent "You can only use medkits while within 15 meters of the field hospital";
  23. };
  24. };
  25. forEach _MagazinesList;
  26. };
  27. };
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement