commanderx 17 Posted November 27, 2017 Hi, I would like to have a fast solution for getting all the classnames out of the Cfg_Vehicles Something like give me all class names of all men which are from faction Civil or all Cars from faction XY. I dont have a clue how to do that. Share this post Link to post Share on other sites
pierremgi 4853 Posted November 27, 2017 For car: MyVehArray = ("(configname _x iskindOf 'car') && (gettext (_x >> 'faction') == 'CIV_F' or gettext (_x >> 'faction') == 'CIV_IDAP_F' )" configClasses (configfile >> "CfgVehicles")) apply {configName _x}; Replace 'car with 'CAManBase' for men. You can use any faction of your existing classes inside your cfgFactionClasses in your viewer. 2 1 Share this post Link to post Share on other sites
commanderx 17 Posted November 27, 2017 Works like a charm. Thanks a alot!!! :-) Share this post Link to post Share on other sites
Theo Thalwitzer 4 Posted April 20, 2020 I found this topic on a search and would like to know where and how to use the line. In the editor? The config viewer? A trigger? I have no idea how to apply that On 11/27/2017 at 5:37 PM, pierremgi said: For car: MyVehArray = ("(configname _x iskindOf 'car') && (gettext (_x >> 'faction') == 'CIV_F' or gettext (_x >> 'faction') == 'CIV_IDAP_F' )" configClasses (configfile >> "CfgVehicles")) apply {configName _x}; Replace 'car with 'CAManBase' for men. You can use any faction of your existing classes inside your cfgFactionClasses in your viewer. Share this post Link to post Share on other sites
pierremgi 4853 Posted April 21, 2020 22 hours ago, Theo Thalwitzer said: I found this topic on a search and would like to know where and how to use the line. In the editor? The config viewer? A trigger? I have no idea how to apply that I've no idea when/where you want to apply that also. This code returns an array of vehicle classes (civilian + IDAP), so an array of string. Tell us more about your project if you need more help on forum. Share this post Link to post Share on other sites