Jump to content
Sign in to follow this  
TheoneandonlyNOR

Arsenal req/help

Recommended Posts

Hello, 

 

I need a arsenal that has everything avaible without Viper mask's. Any1 out there who could make an easy code for this?

 

PS. Might there be a site where this may be easy to do self? (without much coding and reading.)

 

Regards.

Share this post


Link to post
Share on other sites

How about you place ammo boxes on the ground in a row and fill them with all the gear?

 

.

 

Share this post


Link to post
Share on other sites
10 hours ago, Joe98 said:

How about you place ammo boxes on the ground in a row and fill them with all the gear?

 

.

 

I asume you mean the "Object: Equipment Storage" I beleave there must be a easier code. 

 

I have used: ["AmmoboxInit", [this, true]] spawn BIS_fnc_arsenal;

But that makes all gear allowed. Cant there be added a remove viper helm or something in the code? or is it all or nothing?

Share this post


Link to post
Share on other sites

There is no simple way to blacklist an item from the Arsenal. 

 

One easy (and important!) thing you can do is prevent saved loadouts from being loaded if they contain the undesired item:

// description.ext:

arsenalRestrictedItems[] = {"H_HelmetO_ViperSP_hex_F", "H_HelmetO_ViperSP_ghex_F"};

Any loadout a player tries to load containing either helmet will be greyed-out with a tooltip stating "UNKNOWN EQUIPMENT <className>.

 

But a full arsenal still allows one to just grab the helmet from the equipment list. Regarding that, your options:

 

 

1.

DO NOT USE BIS_FNC_ARSENAL.
In the editor, place an ammo crate of your choosing. Open its attributes, find the Equipment Storage section, switch to the Virtual tab. Add ALL items. This will take some time, as you need to select each item in each category and click the  symbol on the right side of each one:

 

1oKUqxl.png

 

If you are using many mods that add equipment, this may be even more painful, but in that case you might want to make separate crates for each mod. 

 

The good news is that you only need to do this once. Once you are done, select "OK" to save and close the attributes window. Right-click the crate and select "Save Custom Composition." Name it whatever you want and save. Now, you can drop this crate in the editor from the Compositions > Custom tab:

 

V10OY44.png

 

To blacklist an item, all you need to do now is open the crate's attributes and deselect the item(s) using the - symbol on the left side (see first screenshot above). This combined with the description.ext entry I mentioned at the beginning should effectively blacklist an item.

 

 

2. 

Do essentially the same but via scripting. This would involve compiling a whitelist then applying it when calling BIS_fnc_Arsenal. Still tedious, just another way of doing the same thing.

 

 

3.

You can monitor for when a player closes the Arsenal or their inventory. In either event, check if any of their equipment is in a list of disallowed gear, then delete it if so.

 

 

I'm leaving #2-3 open, if you want full details just ask.

 

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  

×