Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. fob1Resupplied = false;
  2. _resupply = 0;
  3.  
  4. while {!fob1Resupplied} do
  5. {
  6. _handled = false;
  7. _amount = 0;
  8.  
  9. if (!_handled && (ft1 distance FOB1 < 65)) then
  10. {
  11. _handled = true;
  12. _amount = 1;
  13.  
  14. if (ft2 distance FOB1 < 65) then
  15. {
  16. _amount = 2;
  17. };
  18. };
  19.  
  20. if (!_handled && (ft2 distance FOB1 < 65)) then
  21. {
  22. _handled = true;
  23. _amount = 1;
  24.  
  25. if (ft1 distance FOB1 < 65) then
  26. {
  27. _amount = 2;
  28. };
  29. };
  30.  
  31.  
  32. _resupply = _resupply + _amount;
  33.  
  34. if (_resupply > 1 && _resupply <10) then
  35. {
  36. hintSilent "Resupplying Base";
  37. sleep 10;
  38. coyhq_b setVehicleInit 'coyhq_b globalChat "Convoy this is Pheonix HQ. We have recieved ISAF chatter about 3 mortar positions in your vicinity. Eliminate this threat.";';
  39. processInitCommands;
  40. "Mortar_sobj" setMarkerType "Warning";
  41. hint "Map Updated";
  42. };
  43.  
  44. if (_resupply > 360) then
  45. {
  46. fob1Resupplied = true;
  47. obj1 setTaskState "Succeeded";
  48. hint "FOB Ghazni resupplied";
  49. };
  50.  
  51. sleep 1;
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement