{"name":"BIS_fnc_getCfgDataObject","title":"BIS fnc getCfgDataObject","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getCfgDataObject","revid":309768,"updated":"2022-05-05T12:09:49Z","groups":["Configs"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Get the object defined in cfg by its name (global variable).","syntaxes":[{"syntax":"_this call BIS_fnc_getCfgDataObject","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":"Object","type_expr":"Object","text":"OBJECT or OBJNULL","source":"docblock"},"inferred":true}],"examples":[{"code":["1st way of calling:"]},{"code":["_value = (missionconfigfile >> \"Hubs\" >> \"A1\" >> \"QuickStart\" >> \"trigger\") call BIS_fnc_getCfgDataObject;"]},{"code":["2nd way of calling:"]},{"code":["_value = [\"Hubs\",\"A1\",\"QuickStart\",\"trigger\"] call BIS_fnc_getCfgDataObject;"]}],"docblock":{"text":"Description:\nGet the object defined in cfg by its name (global variable).\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    _value = (missionconfigfile >> \"Hubs\" >> \"A1\" >> \"QuickStart\" >> \"trigger\") call BIS_fnc_getCfgDataObject;\n\n 2nd way of calling:\n\n    _value = [\"Hubs\",\"A1\",\"QuickStart\",\"trigger\"] call BIS_fnc_getCfgDataObject;\n\nReturns:\n    OBJECT or OBJNULL"},"filled_from_docblock":["description","params","syntax","returns","examples"]}