{"name":"BIS_fnc_getCfgSubClasses","title":"BIS fnc getCfgSubClasses","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getCfgSubClasses","revid":326874,"updated":"2022-07-12T21:44:34Z","groups":["Configs"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Return all child classes of given class.","syntaxes":[{"syntax":"_this call BIS_fnc_getCfgSubClasses","params":[{"name":"_this","type":"Config, Array, String","type_expr":"Config | Array<String>","description":"_this: ARRAY of STRINGS - missionConfigFile classes and an attribute.","text":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes and an attribute.","source":"docblock"}],"returns":{"type":"Array, String","types":["Array","String"],"type_expr":"Array","text":"ARRAY (of STRINGS with sub-classes names)","source":"docblock"},"inferred":true}],"examples":[{"code":["private _allVehHitPoints = (configfile >> \"CfgVehicles\" >> \"C_Hatchback_01_sport_F\" >> \"HitPoints\") call BIS_fnc_getCfgSubClasses;"]}],"docblock":{"text":"Description:\nReturn all child classes of given class.\n\nRemark(s):\n Can by called 2 ways:\n     1st way (general) works for any config.\n     2nd way is for comfortable working with mission description.ext.\n\nParameter(s):\n    _this: CFG\n    _this: ARRAY of STRINGS - missionConfigFile classes and an attribute.\n\nExample:\n\n 1st way of calling:\n\n    _subclasses = (missionconfigfile >> \"Hubs\" >> \"A1\" >> \"QuickStart\") call Bis_fnc_getCfgSubClasses;\n\n 2nd way of calling:\n\n    _subclasses = [\"Hubs\"] call Bis_fnc_getCfgSubClasses;\n\nReturns:\n    ARRAY (of STRINGS with sub-classes names)"},"filled_from_docblock":["description","params","syntax","returns"]}