BIS fnc exportCfgGroups: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
(missing step added)
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Diagnostic


|1.00|= Game version
|descr= <pre>/*
____________________________________________________________________________________________
 
| <pre>/*


Description:
Description:
Line 23: Line 21:
Returns:
Returns:
STRING
STRING
*/
*/</pre>


{{Wiki|placeholder}}


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
|s1= <!-- [] call [[BIS_fnc_exportCfgGroups]] -->
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_exportCfgGroups]]; --> |SYNTAX=
|r1=


|p1= |PARAMETER1=
|x1= <!-- <sqf>[] call BIS_fnc_exportCfgGroups;</sqf> -->


| |RETURNVALUE=
|seealso=
____________________________________________________________________________________________
}}
 
|x1= <code></code> |=
____________________________________________________________________________________________


| |SEEALSO=
{{Note
|user= .kju
|timestamp= 20230125122322
|text= How to export objects to a mod/config composition:


# Open the console (CTRL+D in Eden, ESC in Zeus)
# Select the desired object set
# Execute <sqf>[nil,get3DENSelected "" select 0] call BIS_fnc_exportCfgGroups; //Eden
[nil,nil] call BIS_fnc_exportCfgGroups; //Zeus</sqf>
# Paste (CTRL+V) in definitions into a text file
# Create a config.cpp
# Integrate into <syntaxhighlight lang="cpp" inline>class CfgGroups/Empty</syntaxhighlight>
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:exportCfgGroups}}]]
[[Category:Functions|{{uc:exportCfgGroups}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:exportCfgGroups}}]]

Latest revision as of 14:37, 25 January 2023

Hover & click on the images for description

Description

Description:
/*

	Description:
	Export group or object composition for use in CfgGroups. The result will be copied to clipboard.

	Parameter(s):
		0: position (for supported types see BIS_fnc_position). Screen center is used by default
		1: objects to be saved. Currently selected objects in curator are used by default
			ARRAY of OBJECTs - specific objects to be saved
			array in format used by nearEntities, which automatically get nearby objects
				0: STRING or ARRAY of STRINGS - object types
				1: NUMBER - radius in metres

	Returns:
	STRING
*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
.kju - c
Posted on Jan 25, 2023 - 12:23 (UTC)
How to export objects to a mod/config composition:
  1. Open the console (CTRL+D in Eden, ESC in Zeus)
  2. Select the desired object set
  3. Execute
    [nil,get3DENSelected "" select 0] call BIS_fnc_exportCfgGroups; //Eden [nil,nil] call BIS_fnc_exportCfgGroups; //Zeus
  4. Paste (CTRL+V) in definitions into a text file
  5. Create a config.cpp
  6. Integrate into class CfgGroups/Empty