I have been using:
case "weapon": {
//Item is a weapon, add it and a random quantity of magazines
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
_item addWeaponCargoGlobal [_iItem,1];
_mags = [] + getArray (configFile >> "cfgWeapons" >> _iItem >> "magazines");
if ((count _mags) > 0) then {
_item addMagazineCargoGlobal [(_mags select 0), (round(random 2))]; //adds mags to gun
};
All of my weapons currently still spawns with justh 0-2 magazines even when I change
(round(random 2)) to something like (round(random 2)+3).
I unpacked my dayz_code file and took the spawn_loot.sqf and edited the code, packed it into my mission file, and put in on my server through the dayz.st cp.
What I'm looking for is a way to universally make every weapon on the map spawn with 3-5 magazines. Can anyone help with this????
case "weapon": {
//Item is a weapon, add it and a random quantity of magazines
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
_item addWeaponCargoGlobal [_iItem,1];
_mags = [] + getArray (configFile >> "cfgWeapons" >> _iItem >> "magazines");
if ((count _mags) > 0) then {
_item addMagazineCargoGlobal [(_mags select 0), (round(random 2))]; //adds mags to gun
};
All of my weapons currently still spawns with justh 0-2 magazines even when I change
(round(random 2)) to something like (round(random 2)+3).
I unpacked my dayz_code file and took the spawn_loot.sqf and edited the code, packed it into my mission file, and put in on my server through the dayz.st cp.
What I'm looking for is a way to universally make every weapon on the map spawn with 3-5 magazines. Can anyone help with this????