Guest User

Untitled

a guest
Dec 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. };
Add Comment
Please, Sign In to add comment