{"name":"BIS_fnc_exportCfgWeapons","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":"spawn","description":"Export list of weapons for Community Wiki Arma 3 Assets Category.","syntaxes":[{"syntax":"[mode, patches, types] spawn BIS_fnc_exportCfgWeapons","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"String","optional":false,"default":null,"description":"can be one of:\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)","types":["String"],"since":null,"text":"mode: String - can be one of:\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)"},{"name":"patches","type":"Array of Strings","optional":true,"default":"`[]`","description":"list of CfgPatches classes. Only weapons belonging to these addons will be used","types":["Array","String"],"since":null,"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":"`[]`","description":null,"types":["Array","String"],"since":null,"text":"types: Array of Strings - (Optional, default `[]`)"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when done","text":"Boolean - 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"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Diagnostic","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}