{"name":"getMissionConfig","operator":null,"title":"getMissionConfig","type":"command","url":"https://community.bistudio.com/wiki/getMissionConfig","revid":341696,"updated":"2023-06-18T12:18:00Z","groups":["Config","Mission Information"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns Config entry for the given scenario attribute from the 1st tier. The attribute can be config class or config property. If it is defined in multiple places, the command checks them in the following order:\n1. External *Description.ext* file\n1. Eden Editor scenario attribute\nSo if attribute exists in both places, attribute from description.ext is used. Previously, scenario attributes were extracted from *Description.ext* using missionConfigFile. That still works, but it ignores attributes set directly in the editor and it should not be used anymore.","syntaxes":[{"syntax":"getMissionConfig attribute","since":null,"effect":null,"exec":null,"params":[{"name":"attribute","type":"String","optional":false,"default":null,"description":"attribute name","types":["String"],"since":null,"text":"attribute: String - attribute name"}],"returns":{"type":"Config","types":["Config"],"description":null,"text":"Config"},"form":"unary","operator":null,"left":null,"right":{"text":"attribute","types":["String"]}}],"examples":[{"text":"```sqf\n_header = getMissionConfig \"Header\";\n```\n\nReturns scenario header config. Replaces the previous approach which would scan only the external *Description.ext* file, but ignore the value set in the Eden Editor:\n\n```sqf\n_header = missionConfigFile >> \"Header\"; // Old approach\n```","code":["_header = getMissionConfig \"Header\";","_header = missionConfigFile >> \"Header\"; // Old approach"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getMissionConfigValue","missionConfigFile","BIS_fnc_getParamValue","Mission Parameters"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Config","Command Group: Mission Information","Introduced with Arma 3 version 1.56","Scripting Commands"]}