KooZ 1 Posted November 25, 2012 I do not intend to have the caches spawn at the beginning of the map, as they are to be parachuted via C130J, AI Controlled, and trough random map spawns. I've read a good couple of topics, mainly about cleaning a default cache and adding new weapons, I do not think this applies to what I wish to do. The randomly spawned caches need to have custom content, for I do not want any TWS weapons in the mission. I've wandered around at a couple of missions that had the option to ask for a supply drop but nothing conclusive. For example, setting these caches: US Basic: M249 Scope M4A1 CCO M4A1 ACOG ... Snipers: DMR M24 L115A1 ... Local Weapons: AK-74 AKM AK-107 PSO ... I want these to randomly spawn at every town, in a total of 20 per map for example, what sort of script do I need to use to make this possible ? Share this post Link to post Share on other sites
twirly 11 Posted November 25, 2012 Hi... You need several scripts to accomplish what you need. Break what you want to do into pieces and start small.... very small. Don't be too ambitious... not with this game! http://community.bistudio.com/wiki/Category:Scripting_Commands Share this post Link to post Share on other sites
KooZ 1 Posted November 26, 2012 There is, maybe, a easier way to do this, by adding removeallweapons & removemagazines after spawning the said cache and then add a probability to execute, taking the example above, 1 of the 3 available scripts, this would require more time than just setting a custom cache and spawning it, as it would have to work singularly in every cache. But could work, I think. My scripting/coding knowledge is very limited, I gave them the idea and I'm trying to help them with it. Share this post Link to post Share on other sites
twirly 11 Posted November 26, 2012 For finding the towns.... _places = [url="http://community.bistudio.com/wiki/nearestLocations"]nearestLocations[/url] [getMarkerPos "center",["NameCityCapital","NameCity","NameVillage"],10000]; Creating the caches.... use createvehicle array _ammobox = createVehicle ["USBasicWeapons_EP1", position player, [], 0, "NONE"]; For finding good random places to place these caches. You have these to work with... findEmptyPosition isFlatEmpty For paradropping the ammo.... there are many scripts in the forums for that. It's going to be up to you to learn how to string this all together. Share this post Link to post Share on other sites
KooZ 1 Posted November 26, 2012 Thanks in advance for the help. The main objective is to be able to re-customize the weapons inside the actual cache, mainly because PMC weapons have a M8 TWS that they do not wish to have on the mission. private ["_marker","_boxes","_town","_newpos","_numb","_boxnum","_box","_townpos","_towns"]; if (isServer) then { if (CVG_Caches == 1) then { boxes = 20; // Starting point every island should have... _towns = towns; while {boxes > 0} do { _boxes = ["USBasicWeaponsBox","RUBasicWeaponsBox","GERBasicWeapons_EP1","USBasicWeapons_EP1","TKBasicWeapons_EP1","SpecialWeaponsBox","Ammobox_PMC"]; _town = _towns call BIS_fnc_selectRandom; _newpos = getpos _town; _townpos = [_newpos, 10, 100, 1, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; _numb = (count _boxes); _boxnum = floor (random _numb); _box = _boxes select _boxnum; _box = createVehicle [_box,_townpos,[], 0, "NONE"]; boxes = boxes - 1; }; }; }; They came up with this a while ago. Share this post Link to post Share on other sites
twirly 11 Posted November 26, 2012 private ["_marker","_boxes","_town","_newpos","_numb","_boxnum","_box","_townpos","_towns"]; if (isServer) then { if (CVG_Caches == 1) then { boxes = 20; // Starting point every island should have... _towns = towns; while {boxes > 0} do { _boxes = ["USBasicWeaponsBox","RUBasicWeaponsBox","GERBasicWeapons_EP1","USBasicWeapons_EP1","TKBasicWeapons_EP1","SpecialWeaponsBox","Ammobox_PMC"]; _town = _towns call BIS_fnc_selectRandom; _newpos = getpos _town; _townpos = [_newpos, 10, 100, 1, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; _numb = (count _boxes); _boxnum = floor (random _numb); _box = _boxes select _boxnum; _box = createVehicle [_box,_townpos,[], 0, "NONE"]; [color="#FF0000"]nul = [_box] execVM "fill_crate.sqf";[/color] boxes = boxes - 1; }; }; }; fill_crate.sqf:- private ["_crate"]; // Get the crate _crate = _this Select 0; // Remove the stock items from the crate ClearMagazineCargo _crate; ClearWeaponCargo _crate; // Add items to the crate _crate AddMagazineCargo ["20Rnd_556x45_Stanag", 30]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 30]; _crate AddWeaponCargo ["M4A1_Aim", 3]; _crate AddWeaponCargo ["AK_47_S", 3]; _crate AddMagazineCargo ["PipeBomb", 9]; _crate AddMagazineCargo ["TimeBomb", 9]; _crate AddWeaponCargo ["Binocular",3]; What goes into what crate will take some more thinking about the problem. Share this post Link to post Share on other sites
KooZ 1 Posted November 26, 2012 (edited) Thanks, that should do the trick, I'll start working on the the content for every cache! And thanks again :) private ["_marker","_boxes","_town","_newpos","_numb","_boxnum","_box","_townpos","_towns"]; if (isServer) then { if (CVG_Caches == 1) then { boxes = 20; // Starting point every island should have... _towns = towns; while {boxes > 0} do { _boxes = ["TKBasicWeapons_EP1","RuBasicWeaponsBox","LocalBasicWeaponsBox","RUSpecialWeaponsBox","USBasicWeaponsBox","UNBasicWeaponsBox_EP1","GerBasicWeapons_EP1","BAF_BasicWeapons","AmmoBox_PMC","USBasicWeapons_EP1","USSpecialWeapons_EP1","USSpecialWeapons","TKSpecialWeapons_EP1","GuerillaCacheBox"]; _town = _towns call BIS_fnc_selectRandom; _newpos = getpos _town; _townpos = [_newpos, 10, 100, 1, 0, 60 * (pi / 180), 0] call BIS_fnc_findSafePos; _numb = (count _boxes); _boxnum = floor (random _numb); _box = _boxes select _boxnum; _box = createVehicle [_box,_townpos,[], 0, "NONE"]; nul = [_box] execVM "fill_crate.sqf"; boxes = boxes - 1; }; }; }; private ["_crate"]; // Get the crate _crate = _this Select 0; // Remove the stock items from the crate ClearMagazineCargo _crate; ClearWeaponCargo _crate; if _boxes = TKBasicWeapons_EP1 { // Add items _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; //_crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; //_crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 200]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A4", 3]; _crate AddWeaponCargo ["M16A4_ACG", 2]; _crate AddMagazineCargo ["30Rnd_556x45_Stanag", 50]; _crate AddWeaponCargo ["FN_FAL", 5]; _crate AddWeaponCargo ["FN_FAL_ANPVS4", 5]; _crate AddMagazineCargo ["20Rnd_762x51_FNFAL", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate AddWeaponCargo ["SVD", 3]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 20]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = RuBasicWeaponsBox { _crate AddWeaponCargo ["AK_47_M", 10]; _crate AddWeaponCargo ["AK_47_S", 10]; _crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; //_crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["SVD", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 50]; _crate AddWeaponCargo ["Bizon", 5]; _crate AddMagazineCargo ["64Rnd_9x19_Bizon", 50]; _crate AddWeaponCargo ["Sasiga12K", 5]; _crate AddMagazineCargo ["8Rnd_B_Saiga12_74Slug", 25]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = LocalBasicWeaponsBox _crate AddWeaponCargo ["LeeEnfield", 20]; _crate AddMagazineCargo ["10x_303", 100]; _crate AddWeaponCargo ["AKS_74", 10]; _crate AddWeaponCargo ["AKS-74_PSO", 10]; _crate AddWeaponCargo ["AK-74", 15]; _crate AddWeaponCargo ["AK_74_GL", 15]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; //_crate AddWeaponCargo ["SVD", 2]; //_crate AddMagazineCargo ["10Rnd_762x54_SVD", 15]; _crate AddWeaponCargo ["Huntingrifle", 5]; _crate AddMagazineCargo ["5x_22_LR_17_HMR", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 10]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = RUSpecialWeaponsBox { _crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddWeaponCargo ["AKS_74_GOSHAWK", 3]; //THERMAL _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 50]; _crate AddWeaponCargo ["SVD", 5]; _crate AddWeaponCargo ["SVD_CAMO", 5]; _crate AddWeaponCargo ["SVD_des_ep1", 5]; _crate AddWeaponCargo ["SVD_NSPU", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 100]; _crate AddWeaponCargo ["VSS_vintorez", 5]; _crate AddMagazineCargo [10Rnd_9x39_SP5_VSS", 50]; _crate AddWeaponCargo ["KSVK", 5]; _crate AddMagazineCargo ["5Rnd_127x108_KSVK", 50]; _crate AddWeaponCargo ["Bizon_silenced", 5]; _crate AddMagazineCargo ["64Rnd_9x19_SD_Bizon", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddWeaponCargo ["Pecheneg", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 100]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 50]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USBasicWeaponsBox { _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["m4a1_rco_gl", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m4spr", 3]; _crate AddWeaponCargo ["M1014", 5]; _crate AddMagazineCargo ["8Rnd_B_Beneli_74Slug", 25]; _crate AddWeaponCargo ["mp5a5", 5]; _crate AddMagazineCargo ["30Rnd_9x19_MP5", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 300]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = UNBasicWeaponsBox_EP1 //Nerf maybe? { //AMERICAN _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m4spr", 3]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; //RUSSIAN _crate AddWeaponCargo ["AK_47_M", 10]; _crate AddWeaponCargo ["AK_47_S", 10]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["SVD", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = GerBasicWeapons_EP1 { _crate AddWeaponCargo ["G36_c_SD_eotech", 5]; _crate AddWeaponCargo ["G36a", 5]; _crate AddWeaponCargo ["G36c", 5]; _crate AddWeaponCargo ["G36k", 5]; _crate AddWeaponCargo ["MG36", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_556x45_BetaCMag", 100]; //_crate AddWeaponCargo ["m4spr", 3]; //_crate addMagazineCargo ["30Rnd_556x45_Stanag", 50]; _crate AddWeaponCargo ["Huntingrifle", 5]; _crate AddMagazineCargo ["5x_22_LR_17_HMR", 50]; _crate addMagazineCargo ["30Rnd_556x45_G36", 300]; _crate addMagazineCargo ["30Rnd_556x45_G36SD", 300]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = BAF_BasicWeapons { _crate AddWeaponCargo ["BAF_L85A2_RIS", 5]; _crate AddWeaponCargo ["BAF_L85A2_RIS_Holo", 5]; _crate AddWeaponCargo ["BAF_L85A2_RIS_SUSAT", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_ACOG", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_Holo", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_Susat", 5]; _crate AddWeaponCargo ["BAF_L85A2_ACOG", 5]; _crate AddWeaponCargo ["BAF_L110A1_Aim", 5]; _crate AddWeaponCargo ["BAF_L7A2_GPMG", 5]; _crate AddMagazineCargo ["200Rnd_556x45_L110A1", 20]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 20]; _crate AddWeaponCargo ["BAF_LRR_scoped", 5]; _crate AddMagazineCargo ["5Rnd_86x70_L115A1", 20]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = AmmoBox_PMC { _crate AddWeaponCargo ["m8_carbine", 5]; _crate AddWeaponCargo ["m8_carbine_pmc", 5]; _crate AddWeaponCargo ["m8_carbineGL", 5]; _crate AddWeaponCargo ["m8_compact", 5]; _crate AddWeaponCargo ["m8_compact_pmc", 5]; _crate AddWeaponCargo ["m8_holo_sd", 5]; _crate AddWeaponCargo ["m8_SAW", 5]; _crate AddWeaponCargo ["m8_sharpshooter", 5]; _crate addMagazineCargo ["30Rnd_556x45_G36SD", 50]; _crate addMagazineCargo ["100Rnd_556x45_BetaCMag", 100]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USBasicWeapons_EP1 //Possibly US Army Basic Weapons { _crate AddWeaponCargo ["SCAR_L_CQC", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_CCO_SD", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_EGLM_Holo", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_Holo", 5]; _crate AddWeaponCargo ["SCAR_L_STD_EGLM_RCO", 5]; _crate AddWeaponCargo ["SCAR_L_STD_HOLO", 5]; _crate AddWeaponCargo ["SCAR_L_STD_Mk4CQT", 5]; _crate addMagazineCargo ["30Rnd_556x45_StanagSD", 50]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249_ep1", 5]; _crate AddWeaponCargo ["M240_scoped_Ep1", 5]; _crate AddWeaponCargo ["M249_m145_ep1", 5]; _crate AddWeaponCargo ["Mk_48", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["M24", 5]; //_crate AddWeaponCargo ["M24_EP1", 5]; _crate AddMagazineCargo ["5Rnd_762x51_M24", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USSpecialWeapons_EP1 //Possibly US Army Special Weapons { _crate AddWeaponCargo ["SCAR_H_CQC_CCO", 5]; _crate AddWeaponCargo ["SCAR_H_CQC_CCO_SD", 5]; _crate AddWeaponCargo ["SCAR_H_LNG_Sniper", 5]; _crate AddWeaponCargo ["SCARG_H_LNG_Sniper_SD", 5]; _crate AddWeaponCargo ["SCAR_H_STD_EGLM_SPECT", 5]; _crate AddWeaponCargo ["DMR", 5]; _crate AddWeaponCargo ["M14_EP1", 5]; _crate AddMagazineCargo ["20Rnd_762x51_DMR", 100]; _crate addMagazineCargo ["20Rnd_762x51_SB_SCAR", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = USSpecialWeapons { _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_Aim_camo", 5]; _crate AddWeaponCargo ["m4a1_Aim_sd", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["M4A1_hws_gl_camo", 5]; _crate AddWeaponCargo ["M4A1_hws_gl_sd_camo", 5]; _crate AddWeaponCargo ["m4a1_rco_gl", 5]; _crate AddWeaponCargo ["M4A3_CCO_EP1", 5]; _crate AddWeaponCargo ["M4A3_RCO_GL_EP1", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m40A3", 3]; _crate AddMagazineCargo ["5Rnd_762x51_M24", 25]; _crate AddWeaponCargo ["mp5sd", 5]; _crate AddMagazineCargo ["30Rnd_9x19_MP5sd", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 400]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = TKSpecialWeapons_EP1 { _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["SVD", 5]; _crate AddWeaponCargo ["SVD_CAMO", 5]; _crate AddWeaponCargo ["SVD_des_ep1", 5]; _crate AddWeaponCargo ["SVD_NSPU", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 100]; _crate AddWeaponCargo ["KSVK", 5]; _crate AddMagazineCargo ["5Rnd_127x108_KSVK", 50]; _crate AddWeaponCargo ["Pecheneg", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 100]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; if _boxes = GuerillaCacheBox // This cache is very sneaky sneaky, very hard to spot { _crate AddWeaponCargo ["M110_NVG_EP1", 5]; _crate AddWeaponCargo ["SCAR_H_LNG_Sniper", 5]; _crate AddWeaponCargo ["SCAR_H_CQC_CCO", 5]; _crate AddMagazineCargo ["20Rnd_762x51_B_SCAR", 100]; _crate AddWeaponCargo ["M14_EP1", 5]; _crate AddWeaponCargo ["DMR", 5]; _crate AddMagazineCargo ["20Rnd_762x51_DMR", 100]; _crate AddWeaponCargo ["M60A4_EP1", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }else; Edited November 26, 2012 by KooZ Share this post Link to post Share on other sites
KooZ 1 Posted November 26, 2012 Can you only edit one more thing ? I need to make _boxes a variable that travels trough script. Share this post Link to post Share on other sites
twirly 11 Posted November 27, 2012 (edited) You already have the variable... "_crate" to work with. So it would be something like this.... private ["_crate"]; // Get the crate _crate = _this Select 0; // Remove the stock items from the crate ClearMagazineCargo _crate; ClearWeaponCargo _crate; if ([url="http://community.bistudio.com/wiki/typeOf"]typeOf[/url] _crate == "TKBasicWeapons_EP1") then { // Add items _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; //_crate AddWeaponCargo ["AK_GOLD", 5]; //code continues here.... }; if ([url="http://community.bistudio.com/wiki/typeOf"]typeOf[/url] _crate == "RUSpecialWeaponsBox") then { // Add items _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; //_crate AddWeaponCargo ["AK_GOLD", 5]; //code continues here.... }; You can also use switch to do this instead of if. Edited November 27, 2012 by twirly Share this post Link to post Share on other sites
KooZ 1 Posted November 27, 2012 (edited) Would that help with lag this script may cause ? private ["_crate"]; // Get the crate _crate = _this Select 0; // Remove the stock items from the crate ClearMagazineCargo _crate; ClearWeaponCargo _crate; if (typeOf _crate == "TKBasicWeapons_EP1") then { // Add items _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; //_crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; //_crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 200]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A4", 3]; _crate AddWeaponCargo ["M16A4_ACG", 2]; _crate AddMagazineCargo ["30Rnd_556x45_Stanag", 50]; _crate AddWeaponCargo ["FN_FAL", 5]; _crate AddWeaponCargo ["FN_FAL_ANPVS4", 5]; _crate AddMagazineCargo ["20Rnd_762x51_FNFAL", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate AddWeaponCargo ["SVD", 3]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 20]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "RuBasicWeaponsBox") then { _crate AddWeaponCargo ["AK_47_M", 10]; _crate AddWeaponCargo ["AK_47_S", 10]; _crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; //_crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["SVD", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 50]; _crate AddWeaponCargo ["Bizon", 5]; _crate AddMagazineCargo ["64Rnd_9x19_Bizon", 50]; _crate AddWeaponCargo ["Sasiga12K", 5]; _crate AddMagazineCargo ["8Rnd_B_Saiga12_74Slug", 25]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "LocalBasicWeaponsBox") then { _crate AddWeaponCargo ["LeeEnfield", 20]; _crate AddMagazineCargo ["10x_303", 100]; _crate AddWeaponCargo ["AKS_74", 10]; _crate AddWeaponCargo ["AKS-74_PSO", 10]; _crate AddWeaponCargo ["AK-74", 15]; _crate AddWeaponCargo ["AK_74_GL", 15]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddWeaponCargo ["AK_47_M", 5]; _crate AddWeaponCargo ["AK_47_S", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; //_crate AddWeaponCargo ["SVD", 2]; //_crate AddMagazineCargo ["10Rnd_762x54_SVD", 15]; _crate AddWeaponCargo ["Huntingrifle", 5]; _crate AddMagazineCargo ["5x_22_LR_17_HMR", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 10]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "RUSpecialWeaponsBox") then { _crate AddWeaponCargo ["AK_GOLD", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 50]; _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddWeaponCargo ["AKS_74_un_kobra", 5]; _crate AddWeaponCargo ["AKS_74_NSPU", 5]; _crate AddWeaponCargo ["AKS_74_GOSHAWK", 3]; //THERMAL _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 50]; _crate AddWeaponCargo ["SVD", 5]; _crate AddWeaponCargo ["SVD_CAMO", 5]; _crate AddWeaponCargo ["SVD_des_ep1", 5]; _crate AddWeaponCargo ["SVD_NSPU", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 100]; _crate AddWeaponCargo ["VSS_vintorez", 5]; _crate AddMagazineCargo [10Rnd_9x39_SP5_VSS", 50]; _crate AddWeaponCargo ["KSVK", 5]; _crate AddMagazineCargo ["5Rnd_127x108_KSVK", 50]; _crate AddWeaponCargo ["Bizon_silenced", 5]; _crate AddMagazineCargo ["64Rnd_9x19_SD_Bizon", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddWeaponCargo ["Pecheneg", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 100]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 50]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "USBasicWeaponsBox") then { _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["m4a1_rco_gl", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m4spr", 3]; _crate AddWeaponCargo ["M1014", 5]; _crate AddMagazineCargo ["8Rnd_B_Beneli_74Slug", 25]; _crate AddWeaponCargo ["mp5a5", 5]; _crate AddMagazineCargo ["30Rnd_9x19_MP5", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 300]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "UNBasicWeaponsBox_EP1") then { //AMERICAN TO NERF _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m4spr", 3]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; //RUSSIAN TO NERF _crate AddWeaponCargo ["AK_47_M", 10]; _crate AddWeaponCargo ["AK_47_S", 10]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["AK-74", 5]; _crate AddWeaponCargo ["AK_74_GL", 5]; _crate AddWeaponCargo ["AK-74_GL_Kobra", 5]; _crate AddWeaponCargo ["AKS_74", 5]; _crate AddWeaponCargo ["AKS-74_Kobra", 5]; _crate AddWeaponCargo ["AKS_74_u", 5]; _crate AddWeaponCargo ["AKS-74_PSO", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 300]; _crate AddMagazineCargo ["30Rnd_545x39_AKSD", 20]; _crate AddMagazineCargo ["1Rnd_HE_GP25", 50]; _crate AddMagazineCargo ["FlareWhite_GP25", 20]; _crate AddMagazineCargo ["FlareGreen_GP25", 20]; _crate AddMagazineCargo ["FlareRed_GP25", 20]; _crate AddMagazineCargo ["FlareYellow_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_GP25", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_GP25", 20]; _crate AddWeaponCargo ["SVD", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 50]; _crate AddWeaponCargo ["PK", 5]; _crate AddWeaponCargo ["RPK_74", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 25]; _crate AddMagazineCargo ["75Rnd_545x39_RPK", 25]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "GerBasicWeapons_EP1") then { _crate AddWeaponCargo ["G36_c_SD_eotech", 5]; _crate AddWeaponCargo ["G36a", 5]; _crate AddWeaponCargo ["G36c", 5]; _crate AddWeaponCargo ["G36k", 5]; _crate AddWeaponCargo ["MG36", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_556x45_BetaCMag", 100]; //_crate AddWeaponCargo ["m4spr", 3]; //_crate addMagazineCargo ["30Rnd_556x45_Stanag", 50]; _crate AddWeaponCargo ["Huntingrifle", 5]; _crate AddMagazineCargo ["5x_22_LR_17_HMR", 50]; _crate addMagazineCargo ["30Rnd_556x45_G36", 300]; _crate addMagazineCargo ["30Rnd_556x45_G36SD", 300]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "BAF_BasicWeapons") then { _crate AddWeaponCargo ["BAF_L85A2_RIS", 5]; _crate AddWeaponCargo ["BAF_L85A2_RIS_Holo", 5]; _crate AddWeaponCargo ["BAF_L85A2_RIS_SUSAT", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_ACOG", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_Holo", 5]; _crate AddWeaponCargo ["BAF_L85A2_UGL_Susat", 5]; _crate AddWeaponCargo ["BAF_L85A2_ACOG", 5]; _crate AddWeaponCargo ["BAF_L110A1_Aim", 5]; _crate AddWeaponCargo ["BAF_L7A2_GPMG", 5]; _crate AddMagazineCargo ["200Rnd_556x45_L110A1", 20]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 20]; _crate AddWeaponCargo ["BAF_LRR_scoped", 5]; _crate AddMagazineCargo ["5Rnd_86x70_L115A1", 20]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "AmmoBox_PMC") then { _crate AddWeaponCargo ["m8_carbine", 5]; _crate AddWeaponCargo ["m8_carbine_pmc", 5]; _crate AddWeaponCargo ["m8_carbineGL", 5]; _crate AddWeaponCargo ["m8_compact", 5]; _crate AddWeaponCargo ["m8_compact_pmc", 5]; _crate AddWeaponCargo ["m8_holo_sd", 5]; _crate AddWeaponCargo ["m8_SAW", 5]; _crate AddWeaponCargo ["m8_sharpshooter", 5]; _crate addMagazineCargo ["30Rnd_556x45_G36SD", 50]; _crate addMagazineCargo ["100Rnd_556x45_BetaCMag", 100]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "USBasicWeapons_EP1") then { _crate AddWeaponCargo ["SCAR_L_CQC", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_CCO_SD", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_EGLM_Holo", 5]; _crate AddWeaponCargo ["SCAR_L_CQC_Holo", 5]; _crate AddWeaponCargo ["SCAR_L_STD_EGLM_RCO", 5]; _crate AddWeaponCargo ["SCAR_L_STD_HOLO", 5]; _crate AddWeaponCargo ["SCAR_L_STD_Mk4CQT", 5]; _crate addMagazineCargo ["30Rnd_556x45_StanagSD", 50]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249_ep1", 5]; _crate AddWeaponCargo ["M240_scoped_Ep1", 5]; _crate AddWeaponCargo ["M249_m145_ep1", 5]; _crate AddWeaponCargo ["Mk_48", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["M24", 5]; //_crate AddWeaponCargo ["M24_EP1", 5]; _crate AddMagazineCargo ["5Rnd_762x51_M24", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "USSpecialWeapons_EP1") then { _crate AddWeaponCargo ["SCAR_H_CQC_CCO", 5]; _crate AddWeaponCargo ["SCAR_H_CQC_CCO_SD", 5]; _crate AddWeaponCargo ["SCAR_H_LNG_Sniper", 5]; _crate AddWeaponCargo ["SCARG_H_LNG_Sniper_SD", 5]; _crate AddWeaponCargo ["SCAR_H_STD_EGLM_SPECT", 5]; _crate AddWeaponCargo ["DMR", 5]; _crate AddWeaponCargo ["M14_EP1", 5]; _crate AddMagazineCargo ["20Rnd_762x51_DMR", 100]; _crate addMagazineCargo ["20Rnd_762x51_SB_SCAR", 200]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "USSpecialWeapons") then { _crate AddWeaponCargo ["M16A2", 5]; _crate AddWeaponCargo ["M16A2GL", 5]; _crate AddWeaponCargo ["M16A4", 5]; _crate AddWeaponCargo ["M16A4_acg", 5]; _crate AddWeaponCargo ["M16A4_gl", 5]; _crate AddWeaponCargo ["M16A4_acg_gl", 5]; _crate AddWeaponCargo ["M4A1", 5]; _crate AddWeaponCargo ["M4A1_Aim", 5]; _crate AddWeaponCargo ["M4A1_Aim_camo", 5]; _crate AddWeaponCargo ["m4a1_Aim_sd", 5]; _crate AddWeaponCargo ["M4A1_hws_gl", 5]; _crate AddWeaponCargo ["M4A1_hws_gl_camo", 5]; _crate AddWeaponCargo ["M4A1_hws_gl_sd_camo", 5]; _crate AddWeaponCargo ["m4a1_rco_gl", 5]; _crate AddWeaponCargo ["M4A3_CCO_EP1", 5]; _crate AddWeaponCargo ["M4A3_RCO_GL_EP1", 5]; _crate AddWeaponCargo ["M240", 5]; _crate AddWeaponCargo ["M249", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate AddMagazineCargo ["200Rnd_556x45_M249", 50]; _crate AddWeaponCargo ["m40A3", 3]; _crate AddMagazineCargo ["5Rnd_762x51_M24", 25]; _crate AddWeaponCargo ["mp5sd", 5]; _crate AddMagazineCargo ["30Rnd_9x19_MP5sd", 100]; _crate addMagazineCargo ["30Rnd_556x45_Stanag", 400]; _crate AddMagazineCargo ["1Rnd_HE_M203", 50]; _crate AddMagazineCargo ["FlareWhite_M203", 20]; _crate AddMagazineCargo ["FlareGreen_M203", 20]; _crate AddMagazineCargo ["FlareRed_M203", 20]; _crate AddMagazineCargo ["FlareYellow_M203", 20]; _crate AddMagazineCargo ["1Rnd_SMOKE_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeRed_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeGreen_M203", 20]; _crate AddMagazineCargo ["1Rnd_SmokeYellow_M203", 20]; _crate addMagazineCargo ["HandGrenade_West", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "TKSpecialWeapons_EP1") then { _crate AddWeaponCargo ["AK_107_GL_kobra", 5]; _crate AddWeaponCargo ["AK_107_GL_PSO", 5]; _crate AddWeaponCargo ["AK_107_kobra", 5]; _crate AddWeaponCargo ["AK_107_pso", 5]; _crate AddMagazineCargo ["30Rnd_762x39_AK47", 100]; _crate AddWeaponCargo ["SVD", 5]; _crate AddWeaponCargo ["SVD_CAMO", 5]; _crate AddWeaponCargo ["SVD_des_ep1", 5]; _crate AddWeaponCargo ["SVD_NSPU", 5]; _crate AddMagazineCargo ["10Rnd_762x54_SVD", 100]; _crate AddWeaponCargo ["KSVK", 5]; _crate AddMagazineCargo ["5Rnd_127x108_KSVK", 50]; _crate AddWeaponCargo ["Pecheneg", 5]; _crate AddMagazineCargo ["100Rnd_762x54_PK", 100]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; if (typeOf _crate == "GuerillaCacheBox") then { _crate AddWeaponCargo ["M110_NVG_EP1", 5]; _crate AddWeaponCargo ["SCAR_H_LNG_Sniper", 5]; _crate AddWeaponCargo ["SCAR_H_CQC_CCO", 5]; _crate AddMagazineCargo ["20Rnd_762x51_B_SCAR", 100]; _crate AddWeaponCargo ["M14_EP1", 5]; _crate AddWeaponCargo ["DMR", 5]; _crate AddMagazineCargo ["20Rnd_762x51_DMR", 100]; _crate AddWeaponCargo ["M60A4_EP1", 5]; _crate AddMagazineCargo ["100Rnd_762x51_M240", 100]; _crate addMagazineCargo ["HandGrenade_East", 50]; _crate addMagazineCargo ["SmokeShell", 20]; _crate addMagazineCargo ["SmokeShellGreen", 20]; _crate addMagazineCargo ["SmokeShellRed", 20]; _crate addMagazineCargo ["SmokeShellYellow", 20]; _crate addMagazineCargo ["SmokeShellBlue", 20]; _crate addMagazineCargo ["SmokeShellPurple", 20]; _crate addMagazineCargo ["SmokeShellOrange", 20]; _crate AddWeaponCargo ["Binocular", 100]; }; If switch helps reducing lag, I'll later do it. Edited November 27, 2012 by KooZ Share this post Link to post Share on other sites
twirly 11 Posted November 27, 2012 Try it and see what the results you get. If all this stuff is spawning at the beginning of your mission there shouldn't be any problems. Share this post Link to post Share on other sites