{"name":"BIS_fnc_exportCfgWeapons","title":"BIS fnc exportCfgWeapons","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_exportCfgWeapons","revid":353282,"updated":"2024-03-15T16:46:12Z","groups":["Diagnostic"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","exec":"spawn","description":"Export list of weapons for Community Wiki Arma 3 Assets Category.","syntaxes":[{"syntax":"[mode, patches, types] spawn BIS_fnc_exportCfgWeapons","params":[{"name":"mode","type":"String","description":"can be one of:\n\n- \"Equipment\"\n- \"Item\"\n- \"VehicleWeapon\"\n- \"Weapon\" - specific item type, based on BIS_fnc_itemType\n- internal use only: \"screenshots\" - create items one by one and take their screenshot. Works only on \"Render\" terrain.\n- internal use only: \"screenshotsTest\" - create items one by one without taking screen (to verify everything is ok)","type_expr":"String"},{"name":"patches","type":"Array of Strings","optional":true,"default":"`[]`","description":"list of CfgPatches classes. Only weapons belonging to these addons will be used","type_expr":"Array<String>","text":"patches: Array of Strings - (Optional, default `[]`) list of CfgPatches classes. Only weapons belonging to these addons will be used"},{"name":"types","type":"Array of Strings","optional":true,"default":"`[]`","type_expr":"Array<String>","text":"types: Array of Strings - (Optional, default `[]`)"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when done"}}],"examples":[{"text":"```sqf\n[\"Weapon\"]            spawn BIS_fnc_exportCfgWeapons;    // exports Arma 3: CfgWeapons Weapons\n[\"VehicleWeapon\"]    spawn BIS_fnc_exportCfgWeapons;    // exports Arma 3: CfgWeapons Vehicle Weapons\n[\"Item\"]            spawn BIS_fnc_exportCfgWeapons;    // exports Arma 3: CfgWeapons Items\n[\"Equipment\"]        spawn BIS_fnc_exportCfgWeapons;    // exports Arma 3: CfgWeapons Equipment\n[\"screenshots\"]        spawn BIS_fnc_exportCfgWeapons;    // screenshots\n[\"screenshotsTest\"]    spawn BIS_fnc_exportCfgWeapons;    // screenshots test mode, does nothing\n```","code":["[\"Weapon\"]\t\t\tspawn BIS_fnc_exportCfgWeapons;\t// exports Arma 3: CfgWeapons Weapons\n[\"VehicleWeapon\"]\tspawn BIS_fnc_exportCfgWeapons;\t// exports Arma 3: CfgWeapons Vehicle Weapons\n[\"Item\"]\t\t\tspawn BIS_fnc_exportCfgWeapons;\t// exports Arma 3: CfgWeapons Items\n[\"Equipment\"]\t\tspawn BIS_fnc_exportCfgWeapons;\t// exports Arma 3: CfgWeapons Equipment\n[\"screenshots\"]\t\tspawn BIS_fnc_exportCfgWeapons;\t// screenshots\n[\"screenshotsTest\"]\tspawn BIS_fnc_exportCfgWeapons;\t// screenshots test mode, does nothing"]}]}