{"name":"addWeaponTurret","operator":null,"title":"addWeaponTurret","type":"command","url":"https://community.bistudio.com/wiki/addWeaponTurret","revid":377484,"updated":"2026-01-02T06:49:02Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.32"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.64"}],"since":{"game":"arma3","name":"Arma 3","version":"1.32"},"arma3_since":"1.32","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Adds a weapon to the turret. Use turret path [-1] for driver's turret.","syntaxes":[{"syntax":"vehicle addWeaponTurret [weaponName, turretPath]","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"weaponName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"weaponName: String"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":null,"types":["Turret Path"],"since":null,"text":"turretPath: Turret Path"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"[weaponName, turretPath]","types":["Array"]}}],"examples":[{"text":"```sqf\n_tank addWeaponTurret [\"LMG_M200\", [0,0]];\n```","code":["_tank addWeaponTurret [\"LMG_M200\", [0,0]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["removeWeaponTurret","turretLocal","addMagazineTurret","magazinesTurret","removeMagazinesTurret","removeMagazineTurret","weaponsTurret","currentMagazineDetailTurret","currentMagazineTurret","currentWeaponTurret","selectWeaponTurret"],"notes":[{"user":"7erra","date":"2021-06-03T12:05:00Z","text":"You can find out the turret path by entering the turret and checking with\n\n```sqf\nassignedVehicleRole player;\n```"}],"categories":["Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Arma 3 version 1.32","Scripting Commands","Scripting Commands: Global Effect"]}