{"name":"BIS_fnc_exportCfgGroups","title":"BIS fnc exportCfgGroups","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_exportCfgGroups","revid":337401,"updated":"2023-01-25T12:37:23Z","groups":["Diagnostic"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Export group or object composition for use in CfgGroups. The result will be copied to clipboard.","syntaxes":[{"syntax":"[param0, param1] call BIS_fnc_exportCfgGroups","params":[{"name":"param0","type":"Position","type_expr":"Position","text":"0: position (for supported types see BIS_fnc_position). Screen center is used by default","source":"docblock"},{"name":"param1","type":"Object","type_expr":"Object","default":"ARRAY of OBJECTs - specific objects to be saved","description":"ARRAY of OBJECTs - specific objects to be saved\narray in format used by nearEntities, which automatically get nearby objects\n    0: STRING or ARRAY of STRINGS - object types\n    1: NUMBER - radius in metres","text":"1: objects to be saved. Currently selected objects in curator are used by default\nARRAY of OBJECTs - specific objects to be saved\narray in format used by nearEntities, which automatically get nearby objects\n    0: STRING or ARRAY of STRINGS - object types\n    1: NUMBER - radius in metres","source":"docblock"}],"returns":{"type":"String","type_expr":"String","text":"STRING","source":"docblock"},"inferred":true}],"notes":[{"user":".kju","date":"2023-01-25T12:23:22Z","text":"How to export objects to a mod/config composition:\n\n1. Open the console (CTRL+D in Eden, ESC in Zeus)\n1. Select the desired object set\n1. Execute\n\n   ```sqf\n   [nil,get3DENSelected \"\" select 0] call BIS_fnc_exportCfgGroups; //Eden\n   [nil,nil] call BIS_fnc_exportCfgGroups; //Zeus\n   ```\n1. Paste (CTRL+V) in definitions into a text file\n1. Create a config.cpp\n1. Integrate into `class CfgGroups/Empty`"}],"docblock":{"text":"Description:\nExport group or object composition for use in CfgGroups. The result will be copied to clipboard.\n\nParameter(s):\n    0: position (for supported types see BIS_fnc_position). Screen center is used by default\n    1: objects to be saved. Currently selected objects in curator are used by default\n        ARRAY of OBJECTs - specific objects to be saved\n        array in format used by nearEntities, which automatically get nearby objects\n            0: STRING or ARRAY of STRINGS - object types\n            1: NUMBER - radius in metres\n\nReturns:\nSTRING"},"filled_from_docblock":["description","params","syntax","returns"]}