Arma 3 Scripting

Command in Turrets

selectWeaponTurret

Also available as Markdown and JSON, or read the original wiki page.

Description

Selects the given weapon on the specified turret. Use turret path [-1] for the driver's turret.

Syntax

vehicle selectWeaponTurret [weapon, turretPath, muzzle, firemode]

Parameters:

Returns: Nothing

Examples

Example 1

MBT_Kuma selectWeaponTurret ["LMG_coax",[0]];

Example 2

Kamysh selectWeaponTurret ["missiles_titan", [0], "missiles_titan", "topdown"];

See also

removeWeaponTurret · weaponState · turretLocal · addMagazineTurret · magazinesTurret · removeMagazinesTurret · removeMagazineTurret · weaponsTurret · currentMagazineDetailTurret · currentMagazineTurret · currentWeaponTurret · addWeaponTurret

Community notes

Killzone_Kid

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.