Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- by BlackDeker/LeTemplier/Beret Noirs
- */
- private _AON_IncrementFarm = 0;
- private _RandValu = 0;
- while {true} do
- {
- if(count (actionKeys "User1") == 0) then {76}else{(actionKeys "User1") select 0};
- waitUntil {inputAction "User1" > 0};
- _Distance = player distance (getmarkerpos "cooperFarm");
- if (_Distance > 6) exitwith { hint "Pas de zone"; };
- hint "en cours de recolte";
- sleep 1;
- private _oldRandValu = _RandValu;
- _RandValu = [1,2,3,4,5,6] call BIS_fnc_selectRandom;
- private _FarmedItem = "Fourniture De Matière";
- _InfoValuRand = _RandValu;
- if (_AON_IncrementFarm > 0) then
- {
- _RandValu = _oldRandValu + _RandValu;
- PlayerInventory = [[_FarmedItem,_RandValu]];
- }else{
- PlayerInventory = [[_FarmedItem,_RandValu]];
- };
- sleep 1;
- _AON_IncrementFarm = _AON_IncrementFarm +1;
- hint format ["Vous avez obtenu - %1 %2 ------ %3",_InfoValuRand,_FarmedItem,PlayerInventory];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement