{"name":"selectWeaponTurret","operator":null,"title":"selectWeaponTurret","type":"command","url":"https://community.bistudio.com/wiki/selectWeaponTurret","revid":377503,"updated":"2026-01-02T06:49:33Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.12"}],"since":{"game":"arma3","name":"Arma 3","version":"1.12"},"arma3_since":"1.12","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Selects the given weapon on the specified turret. Use turret path [-1] for the driver's turret.","syntaxes":[{"syntax":"vehicle selectWeaponTurret [weapon, turretPath, muzzle, firemode]","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":"weapon","type":"String","optional":false,"default":null,"description":"weapon class name or (since Arma 3 v1.64) muzzle class name","types":["String"],"since":null,"text":"weapon: String - weapon class name or (since Arma 3 v1.64) muzzle class name"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":null,"types":["Turret Path"],"since":null,"text":"turretPath: Turret Path"},{"name":"muzzle","type":"String","optional":true,"default":null,"description":"muzzle name","types":["String"],"since":"arma3 2.08","text":"muzzle: String - (Optional) muzzle name"},{"name":"firemode","type":"String","optional":true,"default":null,"description":"firemode name","types":["String"],"since":"arma3 2.08","text":"firemode: String - (Optional) firemode name"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"[weapon, turretPath, muzzle, firemode]","types":["Array"]}}],"examples":[{"text":"```sqf\nMBT_Kuma selectWeaponTurret [\"LMG_coax\",[0]];\n```","code":["MBT_Kuma selectWeaponTurret [\"LMG_coax\",[0]];"]},{"text":"```sqf\nKamysh selectWeaponTurret [\"missiles_titan\", [0], \"missiles_titan\", \"topdown\"];\n```","code":["Kamysh selectWeaponTurret [\"missiles_titan\", [0], \"missiles_titan\", \"topdown\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["removeWeaponTurret","weaponState","turretLocal","addMagazineTurret","magazinesTurret","removeMagazinesTurret","removeMagazineTurret","weaponsTurret","currentMagazineDetailTurret","currentMagazineTurret","currentWeaponTurret","addWeaponTurret"],"notes":[{"user":"Killzone_Kid","date":"2017-02-13T16:54:00Z","text":"The command will treat weapon or muzzle param like a weapon first. If no such weapon is found then it will try to find muzzle with such name. For example AMV-7 Marshall APC has main gun \"autocannon_40mm_CTWS\" which has 2 muzzles \"HE\" and \"AP\". Default muzzle is \"HE\". So if you try to select weapon by the name \"autocannon_40mm_CTWS\" you will always get \"HE\" muzzle selected. However if you pass \"AP\" as param, it will correctly select \"AP\" muzzle, since no \"AP\" weapon exists on this turret it will continue searching for a muzzle with this name and will find it eventually."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Arma 3 version 1.12","Scripting Commands"]}