alleycat 28 Posted April 13, 2015 How to empty out an arsenal so that only specific items are available? I want to set up an arsenal that has a selection of headgear and goggles, without allowing players to get more ammo for their weapon. Share this post Link to post Share on other sites
jshock 512 Posted April 13, 2015 https://community.bistudio.com/wiki/Arsenal#Virtual_Ammo_Box Share this post Link to post Share on other sites
alleycat 28 Posted April 13, 2015 There is a problem with that: [myBox,["%All"],true] call BIS_fnc_removeVirtualWeaponCargo; //%All dont work 1. Do I have to empty out all possible weapons by using a large array? 2. the arsenal box makes available by default the equipment the player carries when entering it for the first time. This can be exploited in MP, because he can drop his RCO scope, re-access the arsenal and get a new one, duplicating whatever items is needed. I dont see an obvious way to suppress that, or am I overlooking something? Share this post Link to post Share on other sites
jshock 512 Posted April 13, 2015 When you initialize the ammobox do the following and I believe Arsenal is then empty and you fill it with what you want 0 = ["AmmoboxInit",[_box,false,{true}]] spawn BIS_fnc_arsenal; Then use the addVirtual commands to control what is actually in the box. Share this post Link to post Share on other sites
alleycat 28 Posted April 13, 2015 Thanks but I tried that already. The game still adds the player's weapon to the arsenal when he accesses it. Share this post Link to post Share on other sites
jshock 512 Posted April 13, 2015 Hm, then it may be easier to just make a standard gear box with only those specified items available. Share this post Link to post Share on other sites
pero2589 1 Posted April 15, 2015 Thanks but I tried that already. The game still adds the player's weapon to the arsenal when he accesses it. You can try and remove all the weapons from the player when he spawns. Share this post Link to post Share on other sites