BIS fnc exportCfgWeapons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(Add example)
Line 8: Line 8:


| Export list of weapons for Community Wiki [[Category:Arma 3: Assets|Arma 3 Assets Category]]. |Description=
| Export list of weapons for Community Wiki [[Category:Arma 3: Assets|Arma 3 Assets Category]]. |Description=
Parameter(s):
0: STRING - mode
"Weapon", "VehicleWeapon", "Item" - specific item type, based on BIS_fnc_itemType
"screenshots" - create items one by one and take their screenshot. Works only on "Render" terrain.
"screenshotsTest" - create items one by one without taking screen (to verify everything is ok)
1: ARRAY of STRINGs - list of CfgPatches classes. Only weapons belonging to these addons will be used doesn't work, ToDo)
____________________________________________________________________________________________
____________________________________________________________________________________________


| [mode, patches] call [[BIS_fnc_exportCfgWeapons]] |Syntax=
| [mode, patches, types] call [[BIS_fnc_exportCfgWeapons]] |Syntax=


|p1= mode: [[String]] - can be one of:
|p1= mode: [[String]] - can be one of:
Line 28: Line 19:
* internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok) |Parameter 1=
* internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok) |Parameter 1=


|p2= patches: [[Array]] of [[String|Strings]] - (Optional, default []) list of [[CfgPatches]] classes. Only weapons belonging to these addons will be used doesn't work, ToDo) |Parameter 2=
|p2= patches: [[Array]] of [[String|Strings]] - (Optional, default {{Inline code|[]}}) list of [[CfgPatches]] classes. Only weapons belonging to these addons will be used (doesn't work?) |Parameter 2=
 
|p3= types: [[Array]] of [[String|Strings]] - (Optional, default {{Inline code|[]}}) |Parameter 3=


| [[Boolean]] - [[true]] when done |Return value=
| [[Boolean]] - [[true]] when done |Return value=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>["Weapon"] [[call]] [[BIS_fnc_exportCfgWeapons]];</code> |Example 1=
|x1= <code>["Weapon"] [[call]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Weapons]]}}
["VehicleWeapon"] [[call]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Vehicle Weapons]]}}
["Items"] [[call]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Items]]}}
["screenshots"] [[call]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports screenshots}}
["screenshotsTest"] [[call]] [[BIS_fnc_exportCfgWeapons]]; {{cc|screenshots test mode, does nothing}}
</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 22:51, 19 December 2019

Hover & click on the images for description

Description

Description:
Export list of weapons for Community Wiki.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[mode, patches, types] call BIS_fnc_exportCfgWeapons
Parameters:
mode: String - can be one of:
  • "Items"
  • "VehicleWeapon"
  • "Weapon" - specific item type, based on BIS_fnc_itemType
  • internal use only: "screenshots" - create items one by one and take their screenshot. Works only on "Render" terrain.
  • internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok)
patches: Array of Strings - (Optional, default []) list of CfgPatches classes. Only weapons belonging to these addons will be used (doesn't work?)
types: Array of Strings - (Optional, default [])
Return Value:
Boolean - true when done

Examples

Example 1:
["Weapon"] call BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Weapons ["VehicleWeapon"] call BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Vehicle Weapons ["Items"] call BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Items ["screenshots"] call BIS_fnc_exportCfgWeapons; // exports screenshots ["screenshotsTest"] call BIS_fnc_exportCfgWeapons; // screenshots test mode, does nothing

Additional Information

See also:
Diagnostic Function Group

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

Notes

Bottom Section