Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.90 KB | None | 0 0
  1. /*
  2. by BlackDeker/LeTemplier/Beret Noirs
  3. */
  4.  
  5. private _AON_IncrementFarm = 0;
  6. private _RandValu = 0;
  7. while {true} do
  8. {
  9.  
  10. if(count (actionKeys "User1") == 0) then {76}else{(actionKeys "User1") select 0};
  11.  
  12.  
  13. waitUntil {inputAction "User1" > 0};
  14.  
  15. _Distance = player distance (getmarkerpos "cooperFarm");
  16. if (_Distance > 6) exitwith { hint "Pas de zone"; };
  17.  
  18. hint "en cours de recolte";
  19. sleep 1;
  20.  
  21. private _oldRandValu = _RandValu;
  22. _RandValu = [1,2,3,4,5,6] call BIS_fnc_selectRandom;
  23. private _FarmedItem = "Fourniture De Matière";
  24. _InfoValuRand = _RandValu;
  25.  
  26. if (_AON_IncrementFarm > 0) then
  27. {
  28.     _RandValu = _oldRandValu + _RandValu;
  29.     PlayerInventory = [[_FarmedItem,_RandValu]];
  30. }else{
  31.     PlayerInventory = [[_FarmedItem,_RandValu]];
  32. };
  33.  
  34. sleep 1;
  35. _AON_IncrementFarm = _AON_IncrementFarm +1;
  36. hint format ["Vous avez obtenu - %1 %2 ------ %3",_InfoValuRand,_FarmedItem,PlayerInventory];
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement