Greetings, survivors.
I currently run a private family server and have setup both Sectors UBF and FNG. All are working wonderfully and I am now trying to figure out a way to randomize the loot inside the crates. Here is the current code for one of the crates. If someone is able to tell me what code I need to enter/change to randomize these items, that would be great.
I currently run a private family server and have setup both Sectors UBF and FNG. All are working wonderfully and I am now trying to figure out a way to randomize the loot inside the crates. Here is the current code for one of the crates. If someone is able to tell me what code I need to enter/change to randomize these items, that would be great.
Code:
//Sector FNG Weapons Crate
_vehicle_103769 = objNull;
if (true) then
{
_this = createVehicle ["TKVehicleBox_EP1", [6660.3984, 14177.261], [], 0, "CAN_COLLIDE"];
_vehicle_103769 = _this;
_this setDir -182.5;
//Clear Cargo
clearweaponcargoGlobal _this;
clearmagazinecargoGlobal _this;
//Add Cargo
_this addWeaponCargoGlobal ["M4A1_HWS_GL_camo",1];
_this addWeaponCargoGlobal ["M4A1_AIM_SD_camo",1];
_this addWeaponCargoGlobal ["Pecheneg_DZ",1];
_this addWeaponCargoGlobal ["M79_EP1",1];
_this addWeaponCargoGlobal ["BAF_L85A2_RIS_SUSAT",1];
_this addWeaponCargoGlobal ["G36A_camo",1];
_this addWeaponCargoGlobal ["G36K_camo",1];
_this addWeaponCargoGlobal ["G36_C_SD_camo",1];
_this addWeaponCargoGlobal ["SCAR_H_LNG_Sniper_SD",1];
_this addWeaponCargoGlobal ["M32_EP1",1];
_this addWeaponCargoGlobal ["Sa58V_RCO_EP1",1];
_this addWeaponCargoGlobal ["m8_sharpshooter",1];
_this addWeaponCargoGlobal ["Stinger",1];
_this addWeaponCargoGlobal ["Binocular_Vector",1];
_this setPos [6660.3984, 14177.261];
};