Save CfgWeapons in var

This commit is contained in:
Timi007
2022-06-23 20:06:36 +02:00
parent 8318fef2b1
commit 78bfefb932

View File

@ -27,7 +27,8 @@ GVAR(isPlacing) = PLACE_CANCEL;
[_flag, 0, [], _pickupFlag] call ace_interact_menu_fnc_addActionToObject;
}] call CBA_fnc_addEventHandler;
private _flagItems = (call (uiNamespace getVariable [QGVAR(allFlagItems), {[]}])) apply {configFile >> "CfgWeapons" >> _x};
private _cfgWeapons = configFile >> "CfgWeapons";
private _flagItems = (call (uiNamespace getVariable [QGVAR(allFlagItems), {[]}])) apply {_cfgWeapons >> _x};
{
private _name = configName _x;
private _displayName = getText (_x >> "displayName");