{"name":"BIS_fnc_getCfgDataPool","operator":null,"title":"BIS fnc getCfgDataPool","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getCfgDataPool","revid":309841,"updated":"2022-05-05T12:09:52Z","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 array of attribute values out of the parent config class. Attributes need to be in this format: \"_n\", where n is an index number (starting from 0). If any discrepancy in indexing is detected, loading will stop and only the correctly indexed values will be returned. Max. index supported is 99. If more then 9 attributes used, 0-9 need to use leading zeroes.\n\nCFG example:\n\nclass Timeline {\n    class StageA\n    {\n        _0[] = {2035,7,7,04,30};\n        _1[] = {2035,7,7,06,15};\n        _2[] = {2035,7,7,18,35};\n        _3[] = {2035,7,8,09,05};\n        _4[] = {2035,7,8,13,25};\n        _5[] = {2035,7,8,17,10};\n        _6[] = {2035,7,8,21,40};\n        _7[] = {2035,7,9,19,55};\n    };\n};","syntaxes":[{"syntax":"_this call BIS_fnc_getCfgDataPool","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.","since":null,"text":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes.","source":"docblock"}],"returns":{"type":"Array","types":["Array"],"description":null,"text":"ARRAY or nil, if parent class is not found","source":"docblock"},"inferred":true}],"examples":[{"text":"```sqf\n1st way of calling:\n```","code":["1st way of calling:"]},{"text":"```sqf\n_array = (configfile >> \"BulletBubbles\" >> \"BulletBubbles1\") call BIS_fnc_getCfgData;\n_array = (missionconfigfile >> \"Timeline\" >> \"StageA\") call BIS_fnc_getCfgData;\n```","code":["_array = (configfile >> \"BulletBubbles\" >> \"BulletBubbles1\") call BIS_fnc_getCfgData;\n_array = (missionconfigfile >> \"Timeline\" >> \"StageA\") call BIS_fnc_getCfgData;"]},{"text":"```sqf\n2nd way of calling:\n```","code":["2nd way of calling:"]},{"text":"```sqf\n_array = [\"Timeline\",\"StageA\"] call BIS_fnc_getCfgData;\n```","code":["_array = [\"Timeline\",\"StageA\"] call BIS_fnc_getCfgData;"]}],"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 array of attribute values out of the parent config class. Attributes need to be in this format: \"_n\", where n is an index number (starting from 0). If any discrepancy in indexing is detected, loading will stop and only the correctly indexed values will be returned. Max. index supported is 99. If more then 9 attributes used, 0-9 need to use leading zeroes.\n\nCFG example:\n\nclass Timeline {\n    class StageA\n    {\n        _0[] = {2035,7,7,04,30};\n        _1[] = {2035,7,7,06,15};\n        _2[] = {2035,7,7,18,35};\n        _3[] = {2035,7,8,09,05};\n        _4[] = {2035,7,8,13,25};\n        _5[] = {2035,7,8,17,10};\n        _6[] = {2035,7,8,21,40};\n        _7[] = {2035,7,9,19,55};\n    };\n};","params":[{"index":null,"name":"_this","types":[],"optional":false,"default":null,"description":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes.","text":"CFG\n_this: ARRAY of STRINGS - missionConfigFile classes."}],"returns":{"types":["Array"],"text":"ARRAY or nil, if parent class is not found"},"examples":["1st way of calling:","_array = (configfile >> \"BulletBubbles\" >> \"BulletBubbles1\") call BIS_fnc_getCfgData;\n_array = (missionconfigfile >> \"Timeline\" >> \"StageA\") call BIS_fnc_getCfgData;","2nd way of calling:","_array = [\"Timeline\",\"StageA\"] call BIS_fnc_getCfgData;"],"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:\n Get array of attribute values out of the parent config class.\n Attributes need to be in this format: \"_n\", where n is an index number (starting from 0).\n If any discrepancy in indexing is detected, loading will stop and only the correctly indexed values will be returned.\n Max. index supported is 99.\n If more then 9 attributes used, 0-9 need to use leading zeroes.\n\nCFG example:\n\nclass Timeline\n{\n    class StageA\n    {\n        _0[] = {2035,7,7,04,30};\n        _1[] = {2035,7,7,06,15};\n        _2[] = {2035,7,7,18,35};\n        _3[] = {2035,7,8,09,05};\n        _4[] = {2035,7,8,13,25};\n        _5[] = {2035,7,8,17,10};\n        _6[] = {2035,7,8,21,40};\n        _7[] = {2035,7,9,19,55};\n    };\n};\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.\n\nExample:\n\n 1st way of calling:\n\n    _array = (configfile >> \"BulletBubbles\" >> \"BulletBubbles1\") call BIS_fnc_getCfgData;\n    _array = (missionconfigfile >> \"Timeline\" >> \"StageA\") call BIS_fnc_getCfgData;\n\n 2nd way of calling:\n\n    _array = [\"Timeline\",\"StageA\"] call BIS_fnc_getCfgData;\n\nReturns:\n    ARRAY or nil, if parent class is not found"},"filled_from_docblock":["description","params","syntax","returns","examples"]}