Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Add some loot
- _rnd = random 1;
- if (_rnd > 0.3) then {
- _lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
- if (isText _lootType) then {
- _array = []+ getArray (configFile >> "cfgLoot" >> getText(_lootType));
- if (count _array > 0) then {
- _loot = _array call BIS_fnc_selectRandomWeighted;
- if(!isNil "_array") then {
- _agent addMagazine _loot;
- };
- };
- };
- };
Add Comment
Please, Sign In to add comment