Jump to content
Sign in to follow this  
kgino1045

how can i restrict Arsenal?

Recommended Posts

I'd liked to restrict my arsenal in multiplay so people only can look and wear the certain uniform at uniform tab. how can i restrict them? and if those clothes are too many (like 100) how can i easly manage and restric them.

 

I.e. i want them look and wear only RHS and VSM mod uniform in arsenal.

Share this post


Link to post
Share on other sites
//Define what's allowed
_allowedItemsArray = [];
_allowedWeaponsArray = [];
_allowedBackpacksArray = [];
_allowedMagazinesArray = [];

//Initialise Virtual Arsenal on _arsenalObject:
["AmmoboxInit", [_arsenalObject, false, {true}]] call BIS_fnc_arsenal;

//Add allowed equipment to that Virtual Arsenal:
[_arsenalObject, _allowedItemsArray, false, false] call BIS_fnc_addVirtualItemCargo;
[_arsenalObject, _allowedWeaponsArray, false, false] call BIS_fnc_addVirtualWeaponCargo;
[_arsenalObject, _allowedBackpacksArray, false, false] call BIS_fnc_addVirtualBackpackCargo;
[_arsenalObject, _allowedMagazinesArray, false, false] call BIS_fnc_addVirtualMagazineCargo;

Add what you want to whitelist in the empty arrays at the top, make sure that you replace _arsenalObject with the variable name of the object you want the arsenal to be on.

  • Like 3

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  

×