{"name":"BIS_fnc_getCfgDataObject","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Get the object defined in cfg by its name (global variable).","syntaxes":[{"syntax":"_this call BIS_fnc_getCfgDataObject","since":null,"effect":null,"exec":null,"params":[{"name":"_this","type":null,"types":[],"optional":false,"default":null,"description":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes and an attribute.","since":null,"text":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes and an attribute.","source":"docblock"}],"returns":{"type":"Object","types":["Object"],"description":null,"text":"OBJECT or OBJNULL","source":"docblock"},"inferred":true}],"examples":[{"text":"```sqf\n1st way of calling:\n```","code":["1st way of calling:"]},{"text":"```sqf\n_value = (missionconfigfile >> \"Hubs\" >> \"A1\" >> \"QuickStart\" >> \"trigger\") call BIS_fnc_getCfgDataObject;\n```","code":["_value = (missionconfigfile >> \"Hubs\" >> \"A1\" >> \"QuickStart\" >> \"trigger\") call BIS_fnc_getCfgDataObject;"]},{"text":"```sqf\n2nd way of calling:\n```","code":["2nd way of calling:"]},{"text":"```sqf\n_value = [\"Hubs\",\"A1\",\"QuickStart\",\"trigger\"] call BIS_fnc_getCfgDataObject;\n```","code":["_value = [\"Hubs\",\"A1\",\"QuickStart\",\"trigger\"] call BIS_fnc_getCfgDataObject;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Configs","Functions","Introduced with Arma 3 version 1.00"],"docblock":{"author":null,"description":"Get the object defined in cfg by its name (global variable).","params":[{"index":null,"name":"_this","types":[],"optional":false,"default":null,"description":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes and an attribute.","text":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes and an attribute."}],"returns":{"types":["Object"],"text":"OBJECT or OBJNULL"},"examples":["1st way of calling:","_value = (missionconfigfile >> \"Hubs\" >> \"A1\" >> \"QuickStart\" >> \"trigger\") call BIS_fnc_getCfgDataObject;","2nd way of calling:","_value = [\"Hubs\",\"A1\",\"QuickStart\",\"trigger\"] call BIS_fnc_getCfgDataObject;"],"syntax":null,"execution":null,"notes":"Can by called 2 ways:\n    1st way (general) works for any config.\n    2nd way is for comfortable working with mission description.ext.","requirements":null,"meta":{},"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"]}