Search the Community
Showing results for tags 'displayname'.
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:
-
Hi all, I've made a my first static object in O2 and basically it is working however the object's name is not displayed when I hover over it in the command view (see attached screenshots). I am sure that the fault is somewhere in my model because I replaced the model of my object with a standard BIS one and then the name is displayed. Can anyone provide advice what I have to add/remove in my model for the object's displayName to get displayed in Ofp? My model has 0.2 LOD View Geometry LOD (with component(s)) Geometry LOD (with component(s)) Fire Geometry LOD (with component(s)) Land Contact LOD p3d download for my model