Page MenuHomeFeedback Tracker

BIS_fnc_addVirtualItemCargo does not recognize facewears if the given classnames are not equal to configName
New, NormalPublic

Description

Title; since other functions work even if I lowercase the classnames, it is not really a consistent behavior.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Virtual Arsenal
Steps To Reproduce
  1. Place a box with its inventory space, name it box
  2. Execute this: [box,["g_airpurifyingrespirator_01_f"]] call BIS_fnc_addVirtualItemCargo
  3. It generates Arsenal action
  4. Check inside it, you don't have the APR [NATO]
Additional Information

Line 55 of fn_addVirtualItemCargo.sqf,

		private _class = switch _type do 
		{
			case 0;
			case 1: { configname (configfile >> "cfgweapons" >> _x) };
			case 2: { configname (configfile >> "cfgmagazines" >> _x) };
			case 3: { configname (configfile >> "cfgvehicles" >> _x) };
			default { "" };
		};

This part of it doesn't take CfgGlasses into count.

Event Timeline

POLPOX created this task.Jul 2 2022, 9:31 AM
SaMatra added a subscriber: SaMatra.Jul 2 2022, 9:31 AM