BIS fnc exportCfgVehicles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Diagnostic


|1.00|= Game version
|descr= Export list of objects for Community Wiki ([[:Category:Arma_3:_Assets|Assets]]).
____________________________________________________________________________________________


| <pre>/*
|s1= [mode,sides,classes,useAI] call [[BIS_fnc_exportCfgVehicles]]


Description:
|p1= mode: [[String]] - mode, can be one of:
Export list of objects for Community Wiki
* "config" - copy the objects table to clipboard
http://community.bistudio.com/wiki/Category:Arma_3:_Assets
* "screenshots" - create objects one by one and take their screenshot. Works only on "[[Render_Worlds|Render]]" terrain.
* "screenshotsTest" - create objects one by one without taking screen (to verify everything is ok)


Parameter(s):
|p2= sides: [[Array]] of [[Side]]s - only objects of these sides will be used
0: STRING - mode
"config" - copy the objects table to clipboard
"screenshots" - create objects one by one and take their screenshot. Works only on "Render" terrain.
"screenshotsTest" - create objects one by one without taking screen (to verify everything is ok)


1: ARRAY of SIDEs 0 list of sides. Only objects of these sides will be used
|p3= classes: [[Array]]of [[String]]s- list of CfgPatches classes. Only objects belonging to these addons will be used
2: ARRAY of STRINGs - list of CfgPatches classes. Only objects belonging to these addons will be used
3: BOOL - true to use only AI units (soldiers, vehicles), false to use empty ones


Returns:
|p4= useAI: [[Boolean]] - true to use only AI units (soldiers, vehicles), false to use empty ones
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[Boolean]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_exportCfgVehicles]]; --> |= Syntax
|x1= <sqf>[] call BIS_fnc_exportCfgVehicles;</sqf>


|p1= |= Parameter 1
|x2= <sqf>["config", [3], ["A3_Characters_F_Beta","A3_Characters_F_EPA","A3_Characters_F_EPB"], true] call BIS_fnc_exportCfgVehicles;</sqf>
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso=
}}
}}
<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: Diagnostic|{{uc:exportCfgVehicles}}]]
[[Category:Functions|{{uc:exportCfgVehicles}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:exportCfgVehicles}}]]

Latest revision as of 23:44, 12 July 2022

Hover & click on the images for description

Description

Description:
Export list of objects for Community Wiki (Assets).
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[mode,sides,classes,useAI] call BIS_fnc_exportCfgVehicles
Parameters:
mode: String - mode, can be one of:
  • "config" - copy the objects table to clipboard
  • "screenshots" - create objects one by one and take their screenshot. Works only on "Render" terrain.
  • "screenshotsTest" - create objects one by one without taking screen (to verify everything is ok)
sides: Array of Sides - only objects of these sides will be used
classes: Arrayof Strings- list of CfgPatches classes. Only objects belonging to these addons will be used
useAI: Boolean - true to use only AI units (soldiers, vehicles), false to use empty ones
Return Value:
Boolean

Examples

Example 1:
[] call BIS_fnc_exportCfgVehicles;
Example 2:
["config", [3], ["A3_Characters_F_Beta","A3_Characters_F_EPA","A3_Characters_F_EPB"], true] call BIS_fnc_exportCfgVehicles;

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