{"name":"BIS_fnc_getCfg","operator":null,"title":"BIS fnc getCfg","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getCfg","revid":349406,"updated":"2023-11-08T16:27:26Z","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":"Smart-return config (extension for BIS_fnc_getCfgXXXX functions).\nCan by called 2 ways:\n- 1st way - passing config directly\n- 2nd way - passing array of strings or config and strings","syntaxes":[{"syntax":"input call BIS_fnc_getCfg","since":null,"effect":null,"exec":null,"params":[{"name":"input","type":"Config or Array","optional":false,"default":null,"description":"can be Config path or array of strings with config names","types":["Config","Array"],"since":null,"text":"input: Config or Array - can be Config path or array of strings with config names"}],"returns":{"type":"Config","types":["Config"],"description":null,"text":"Config"}}],"examples":[{"text":"```sqf\n( configFile >> \"BulletBubbles\" >> \"BulletBubbles1\" ) call BIS_fnc_getCfg;\n```","code":["( configFile >> \"BulletBubbles\" >> \"BulletBubbles1\" ) call BIS_fnc_getCfg;"]},{"text":"```sqf\n[configFile >> \"BulletBubbles\" >> \"BulletBubbles1\"] call BIS_fnc_getCfg;\n```","code":["[configFile >> \"BulletBubbles\" >> \"BulletBubbles1\"] call BIS_fnc_getCfg;"]},{"text":"```sqf\n[configFile, \"BulletBubbles\", \"BulletBubbles1\"] call BIS_fnc_getCfg;\n```","code":["[configFile, \"BulletBubbles\", \"BulletBubbles1\"] call BIS_fnc_getCfg;"]},{"text":"```sqf\n[\"Hubs\", \"A1\", \"QuickStart\", \"trigger\"] call BIS_fnc_getCfg;\n```","code":["[\"Hubs\", \"A1\", \"QuickStart\", \"trigger\"] call BIS_fnc_getCfg;"]},{"text":"```sqf\n[\"Hubs\"] call BIS_fnc_getCfg;\n```","code":["[\"Hubs\"] call BIS_fnc_getCfg;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["configClasses","configProperties","missionConfigFile","campaignConfigFile","configName","getArray","getText","getNumber","inheritsFrom","isClass","isText","configHierarchy"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Configs","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}