BIS fnc exportCfgWeapons: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add example) |
Lou Montana (talk | contribs) (Fix exec and add example) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [mode, patches, types] | | [mode, patches, types] spawn [[BIS_fnc_exportCfgWeapons]] |Syntax= | ||
|p1= mode: [[String]] - can be one of: | |p1= mode: [[String]] - can be one of: | ||
* "Equipment" | |||
* "Items" | * "Items" | ||
* "VehicleWeapon" | * "VehicleWeapon" | ||
Line 26: | Line 27: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>["Weapon"] [[ | |x1= <code> ["Weapon"] [[spawn]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Weapons]]}} | ||
["VehicleWeapon"] [[ | ["VehicleWeapon"] [[spawn]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Vehicle Weapons]]}} | ||
["Items"] [[ | ["Items"] [[spawn]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Items]]}} | ||
["screenshots"] [[ | ["Equipment"] [[spawn]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports [[Arma 3 CfgWeapons Equipment]]}} | ||
["screenshotsTest"] [[ | ["screenshots"] [[spawn]] [[BIS_fnc_exportCfgWeapons]]; {{cc|exports screenshots}} | ||
["screenshotsTest"] [[spawn]] [[BIS_fnc_exportCfgWeapons]]; {{cc|screenshots test mode, does nothing}} | |||
</code> |Example 1= | </code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[:Category:Function Group: Diagnostic|Diagnostic Function Group]] |See also= | | [[:Category:Function Group: Diagnostic|Diagnostic Function Group]] |See also= | ||
|exec= spawn |Exec= | |||
}} | }} | ||
Revision as of 23:38, 19 December 2019
Description
- Description:
- Export list of weapons for Community Wiki.
- Execution:
- spawn
- Groups:
- Uncategorised
Syntax
- Syntax:
- [mode, patches, types] spawn BIS_fnc_exportCfgWeapons
- Parameters:
- mode: String - can be one of:
- "Equipment"
- "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"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Weapons ["VehicleWeapon"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Vehicle Weapons ["Items"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Items ["Equipment"] spawn BIS_fnc_exportCfgWeapons; // exports Arma 3 CfgWeapons Equipment ["screenshots"] spawn BIS_fnc_exportCfgWeapons; // exports 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