BIS fnc exportCfgWeapons: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{ *cc*\| *([^}]+) *\}\}" to "// $1")
m (Some wiki formatting)
Line 18: Line 18:
* internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok)
* internal use only: "screenshotsTest" - create items one by one without taking screen (to verify everything is ok)


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


|r1= [[Boolean]] - [[true]] when done
|r1= [[Boolean]] - [[true]] when done


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


|seealso= [[:Category:Function Group: Diagnostic|Diagnostic Function Group]]
|seealso= [[:Category:Function Group: Diagnostic|Diagnostic Function Group]]

Revision as of 12:45, 13 July 2022

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