Jump to content
Sign in to follow this  
alleycat

How to empty out an arsenal so that only specific items are available?

Recommended Posts

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

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

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

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×