BIS fnc exportCfgWeapons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add example)
m (Add links to comment now that this is possible)
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Diagnostic
____________________________________________________________________________________________


| Export list of weapons for Community Wiki [[Category:Arma 3: Assets|Arma 3 Assets Category]]. |Description=
|descr= Export list of weapons for Community Wiki [[:Category:Arma 3: Assets|Arma 3 Assets Category]].
____________________________________________________________________________________________


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


|p1= mode: [[String]] - can be one of:
|p1= mode: [[String]] - can be one of:
* "Items"
* "Equipment"
* "Item"
* "VehicleWeapon"
* "VehicleWeapon"
* "Weapon" - specific item type, based on [[BIS_fnc_itemType]]
* "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: "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) |Parameter 1=
* internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok)


|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=
|p2= patches: [[Array]] of [[String]]s - (Optional, default <sqf inline>[]</sqf>) list of [[CfgPatches]] classes. Only weapons belonging to these addons will be used


|p3= types: [[Array]] of [[String|Strings]] - (Optional, default {{Inline code|[]}}) |Parameter 3=
|p3= types: [[Array]] of [[String]]s - (Optional, default <sqf inline>[]</sqf>)


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


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


| [[:Category:Function Group: Diagnostic|Diagnostic Function Group]] |See also=
|seealso= [[:Category:Function Group: Diagnostic|Diagnostic Function Group]]
 
|exec= spawn
}}
}}
<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:Functions|{{uc:exportCfgWeapons}}]]
[[Category:Function Group: Diagnostic|{{uc:exportCfgWeapons}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:exportCfgWeapons}}]]

Latest revision as of 17:46, 15 March 2024

Hover & click on the images for description

Description

Description:
Export list of weapons for Community Wiki Arma 3 Assets Category.
Execution:
spawn
Groups:
Diagnostic

Syntax

Syntax:
[mode, patches, types] spawn BIS_fnc_exportCfgWeapons
Parameters:
mode: String - can be one of:
  • "Equipment"
  • "Item"
  • "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
types: Array of Strings - (Optional, default [])
Return Value:
Boolean - true when done

Examples

Example 1:
["Weapon"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3: CfgWeapons Weapons ["VehicleWeapon"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3: CfgWeapons Vehicle Weapons ["Item"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3: CfgWeapons Items ["Equipment"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3: CfgWeapons Equipment ["screenshots"] spawn BIS_fnc_exportCfgWeapons; // screenshots ["screenshotsTest"] spawn 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