{"name":"BIS_fnc_exportCfgGroups","operator":null,"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","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":"Export group or object composition for use in CfgGroups. The result will be copied to clipboard.","syntaxes":[{"syntax":"[param0, param1] call BIS_fnc_exportCfgGroups","since":null,"effect":null,"exec":null,"params":[{"name":"param0","type":"Position","types":["Position"],"optional":false,"default":null,"description":null,"since":null,"text":"0: position (for supported types see BIS_fnc_position). Screen center is used by default","source":"docblock"},{"name":"param1","type":"Object","types":["Object"],"optional":false,"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","since":null,"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","types":["String"],"description":null,"text":"STRING","source":"docblock"},"inferred":true}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"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```\n\n1. Paste (CTRL+V) in definitions into a text file\n1. Create a config.cpp\n1. Integrate into `class CfgGroups/Empty`"}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.00"],"docblock":{"author":null,"description":"Export group or object composition for use in CfgGroups. The result will be copied to clipboard.","params":[{"index":0,"name":null,"types":["Position"],"optional":false,"default":null,"description":null,"text":"position (for supported types see BIS_fnc_position). Screen center is used by default"},{"index":1,"name":null,"types":["Object"],"optional":false,"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":"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"}],"returns":{"types":["String"],"text":"STRING"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"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"]}