Search the Community
Showing results for tags 'return'.
Found 2 results
-
I am making a storage system that will take items from a crate and store them in an array. Where im having some trouble is when I convert the classname to displayname to display in the listbox, When the player selects the listbox displayname I have to convert the displayname back to classname and end up getting a different classname then what goes in. If I input "U_BG_Guerilla2_2" whos displayname is "Guerilla Outfit (Pattern)" into private _classname = "getText (_x >> 'displayName') == _this" configClasses (configFile >> "cfgWeapons"); if (count _classname > 0) exitWith {configName (_classname select 0)}; _classname = "getText (_x >> 'displayName') == _this" configClasses (configFile >> "cfgMagazines"); if (count _classname > 0) exitWith {configName (_classname select 0)}; _classname = "getText (_x >> 'displayName') == _this" configClasses (configFile >> "cfgVehicles"); if (count _classname > 0) exitWith {configName (_classname select 0)}; _classname It will return "U_IG_Guerilla2_2" instead of "U_BG_Guerilla2_2". I have tried using [configFile >> "cfgWeapons" >> _classname, true] call BIS_fnc_returnParents; but returns ["U_IG_Guerilla2_2","Uniform_Base","ItemCore","Default"]. This seems to be a problem with vanilla arma gear because any RHS gear I use it on returns the same classname. If anyone has any ideas I appreciate the help.
- 3 replies
-
- displayname
- classname
-
(and 2 more)
Tagged with:
-
Author: JTS Introduction: A mission in operation flashpoint style Description: Kolgujev. October 1, 2020. This military island, owned by United States, was abandoned for many years. But recently there was found a large activity of Russian army. The US considered it as a threat and sent two officers to the Russian headquarters in Kolgujev to assess the situation. But instead of peaceful negotiations, they captured them. October 20, the United States established a base on the coast of Kolgujev. On October 25, the US sent a squad to an operation to rescue two officers Features: - Start scene - OFP style mission - 2 localizations: English & russian - Revive (APEX Edition) - Respawn with respawn screen (Selectable locations) - JIP (Join in progress) compatible - Music from OFP - Conversation script (APEX Edition) Notes: - Read briefing carefully Credits & thanks: Mission was tested by: JTS (me), Urban Screenshots: Download (Steam workshop) Download (Armaholic)