La Croxyy 1 Posted December 2, 2017 The title pretty much explains it all. How would i proceed with getting the class names of vehicles in CfgVehicles and putting them into an array so i could add them to a listbox. Share this post Link to post Share on other sites
Alpine_gremlin 13 Posted December 2, 2017 Well the classnames of pretty much every ArmA III asset can be found on the Biki. BLUFOR cfgvehicles for example: https://community.bistudio.com/wiki/Arma_3_CfgVehicles_WEST As for putting them into an array, I believe that you just name an array and put the classnames inside it. _exampleArray = ["classname1","classname2",classname3"]; //and so on and so on I`m not too experienced at scripting so maybe one of the pros will be along shortly :D Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted December 2, 2017 Use configClasses: _allVehicleConfigs = "true" configClasses (configFile >> "CfgVehicles"); _allVehicleConfigNames = _allVehicleConfigs apply {configName _x}; First one will hold all config paths, second one will hold all config class names, like "B_Rifleman_F". Cheers Share this post Link to post Share on other sites
La Croxyy 1 Posted December 2, 2017 1 hour ago, Grumpy Old Man said: Use configClasses: _allVehicleConfigs = "true" configClasses (configFile >> "CfgVehicles"); _allVehicleConfigNames = _allVehicleConfigs apply {configName _x}; First one will hold all config paths, second one will hold all config class names, like "B_Rifleman_F". Cheers I'll try it, thanks. Share this post Link to post Share on other sites
La Croxyy 1 Posted December 2, 2017 @Grumpy Old Man It works but how would i proceed with making it only hold the class names of vehicles like, "Car","Air","Ship","Armoured" all in one array? Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted December 3, 2017 10 hours ago, La Croxyy said: @Grumpy Old Man It works but how would i proceed with making it only hold the class names of vehicles like, "Car","Air","Ship","Armoured" all in one array? Check the comment from iceman77, it has an example how to filter for specific types. Cheers Share this post Link to post Share on other sites
La Croxyy 1 Posted December 3, 2017 5 hours ago, Grumpy Old Man said: Check the comment from iceman77, it has an example how to filter for specific types. Cheers I don't see iceman's comment, perhaps he has deleted it? Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted December 3, 2017 38 minutes ago, La Croxyy said: I don't see iceman's comment, perhaps he has deleted it? First comment on the page I linked. Cheers Share this post Link to post Share on other sites
pierremgi 4889 Posted December 4, 2017 In other words: ("(configname _x isKindOf 'LandVehicle' or configname _x isKindOf 'Air' or configname _x isKindOf 'Ship') && getNumber (_x >> 'scope') == 2 " configClasses (configfile >> "CfgVehicles")) apply {configName _x}; 1 Share this post Link to post Share on other sites