Page MenuHomeFeedback Tracker

Need More Info, NormalPublic


If you have created an arsenal (whitelist) and have blacklisted items using arsenalRestictedItems,
you can still take some of the blacklist items in the arsenal if you have one in your inventory.


Operating System
Windows 10
Steps To Reproduce

1. Create fn_setArsenal.sqf

params ["_target"];
private _guns = ["hgun_P07_F"];
private _launchers = ["launch_RPG32_F"];
private _mags = ["16Rnd_9x21_Mag"];
private _items = ["ToolKit"];
private _uniforms = ["U_B_CombatUniform_mcam"];
private _vests = ["V_Rangemaster_belt"];
private _backpacks = ["B_AssaultPack_khk"];

[_target, _backpacks, true, true] call BIS_fnc_addVirtualBackpackCargo;
[_target, _uniforms + _vests + _items, true, true] call BIS_fnc_addVirtualItemCargo;
[_target, _mags, true, true] call BIS_fnc_addVirtualMagazineCargo;
[_target, _guns + _launchers, true, true] call BIS_fnc_addVirtualWeaponCargo;

2. Put in initfield of the crate
[this] call iV_fnc_setArsenal;

3. Blacklist an item with arsenalRestrictedItems

4. Put one of the blacklisted items in your Invetory and open the Arsenal
Now you can see and use it in the list.

Event Timeline

iV-Ghost created this task.Jun 5 2020, 3:39 PM
Wulf added a subscriber: Wulf.Jun 8 2020, 2:29 PM


Thank you for the report. Please upload the test mission here.

You can find the restricted items (ArsenalRestrictedItems) inside the crate.
Open the arsenal first and test without these items. You can't find it.
And then take one from the inventory of the crate and test again.
Now you can take as many as you want.

Are you able to load saved loadout with restricted items? arsenalRestrictedItems prevents user from loading saved loadouts that contain restricted items as per it does not disable items you have in inventory or in arsenal

BIS_fnc_KK changed the task status from New to Need More Info.Jun 17 2020, 10:28 PM

No, I can't load loadouts with restricted items.
It would be nice if blocked items (arsenalRestrictedItems) were not accessible in the arsenal so that we could control the content.
Unfortunately, this can currently still be avoided under certain circumstances.

Will we get a solution for this "problem"?
That would be really important for our mission framework.

you can create arsenal box and add custom content to it, this param is for loadouts only and is unlikely to change.

iV-Ghost added a comment.EditedJul 15 2020, 4:11 PM

Is it not possible to ask if an item is listed in this array while arsenal is open?
And if is listed then don't show and don't make it chooseable in any case.