{"name":"addWeaponPool","operator":null,"title":"addWeaponPool","type":"command","url":"https://community.bistudio.com/wiki/addWeaponPool","revid":364177,"updated":"2024-05-05T10:46:45Z","groups":["Weapon Pool"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.75"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.75"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Add weapons to the weapon pool, of which the player may choose in the following mission. Available in campaigns only.","syntaxes":[{"syntax":"addWeaponPool [weaponName, count]","since":null,"effect":null,"exec":null,"params":[{"name":"weaponName","type":"String","optional":false,"default":null,"description":"weapon name. See the topic Category:Weapons for reference about possible values.","types":["String"],"since":null,"text":"weaponName: String - weapon name. See the topic Category:Weapons for reference about possible values."},{"name":"count","type":"Number","optional":false,"default":null,"description":"number of weapons to add","types":["Number"],"since":null,"text":"count: Number - number of weapons to add"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[weaponName, count]","types":["Array"]}}],"examples":[{"text":"```sqf\naddWeaponPool [\"M16\",5];\n```","code":["addWeaponPool [\"M16\",5];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["addMagazinePool","clearWeaponPool","queryWeaponPool","addMagazineAmmoCargo"],"notes":[],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Weapon Pool","Introduced with Operation Flashpoint version 1.75","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Take On Helicopters: Scripting Commands"]}