SHARE
TWEET

Untitled

a guest Dec 18th, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Add some loot
  2. _rnd = random 1;
  3. if (_rnd > 0.3) then {
  4.     _lootType =         configFile >> "CfgVehicles" >> _type >> "zombieLoot";
  5.     if (isText _lootType) then {
  6.         _array = []+ getArray (configFile >> "cfgLoot" >> getText(_lootType));
  7.         if (count _array > 0) then {
  8.             _loot = _array call BIS_fnc_selectRandomWeighted;
  9.             if(!isNil "_array") then {
  10.                 _agent addMagazine _loot;
  11.             };
  12.         };
  13.     };
  14. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top