# Turrets (scripting commands)

- [addMagazinesTurret](../../commands/addMagazinesTurret.md): Adds given number of a magazine to the given turret. Use turret path `[-1]` for driver's turret.
- [addMagazineTurret](../../commands/addMagazineTurret.md): Adds a magazine to the turret. Use turret path `[-1]` for driver's turret.
- [addWeaponTurret](../../commands/addWeaponTurret.md): Adds a weapon to the turret. Use turret path [-1] for driver's turret.
- [allTurrets](../../commands/allTurrets.md): Returns array of available turret paths from vehicle object.
- [assignAsTurret](../../commands/assignAsTurret.md): Assigns the soldier to turret.
- [currentMagazineDetailTurret](../../commands/currentMagazineDetailTurret.md): Returns the class name of currently used magazine on specified turret. Use turret path [-1] for driver's turret. Note that a turret is not loaded until unit enters it, so this command will return "".
- [currentMagazineTurret](../../commands/currentMagazineTurret.md): Returns the name of the type of the currently using magazine on specified turret. Use turret path [-1] for driver's turret. Note that a turret is not loaded until unit enters it, so this command will return "".
- [currentWeaponTurret](../../commands/currentWeaponTurret.md): Returns the name of the currently selected weapon on specified turret. Use turret path [-1] for driver's turret.
- [directionStabilizationEnabled](../../commands/directionStabilizationEnabled.md): Get state of direction stabilization. This command returns true if the current optic mode of the selected turret has direction stabilization configured in config (`directionStabilized`) and if it is also not disabled by…
- [enableDirectionStabilization](../../commands/enableDirectionStabilization.md): Enables / disables direction stabilization of turrets. This command only has an effect if the current optic mode of the selected turret has `directionStabilized` configured in config.
- [enableGunStabilization](../../commands/enableGunStabilization.md): Enables/disables turret gun stabilisation.
- [enablePersonTurret](../../commands/enablePersonTurret.md): Enables or disables firing from a vehicle cargo position. To get the turret path use assignedVehicleRole or getCargoIndex command.
- [getTurretLimits](../../commands/getTurretLimits.md): Returns the rotation and elevation limits for the given turret.
- [getTurretOpticsMode](../../commands/getTurretOpticsMode.md): Get the current optics mode of the optics in the turret occupied by the specified unit. The alternative syntax allows a vehicle and turret path to be specified without needing a unit.
- [loadMagazine](../../commands/loadMagazine.md): Initiates the loading action on given weapon of the turret of a transport. So the new magazine is not available instantly, yet according to the reloadTime.
- [lockedTurret](../../commands/lockedTurret.md): Check whether gunner position of the vehicle turret is locked.
- [lockTurret](../../commands/lockTurret.md): Lock the gunner position of the vehicle turret. This command will remove user "get in" action (not "get out") but will also stop player getting into vehicle via script commands unlike lock command.
- [magazinesAllTurrets](../../commands/magazinesAllTurrets.md): Returns all magazines (including empty) from all vehicle turrets (including driver turret [-1]) and their ammo counts. Since Arma 3 v2.08.148327 it is possible to exclude person turrets from returned results.
- [magazinesTurret](../../commands/magazinesTurret.md): Returns all magazines of given turret. Use turret path [-1] for driver's turret. Alternatively, use magazinesAllTurrets.
- [magazineTurretAmmo](../../commands/magazineTurretAmmo.md): Returns ammo count of given magazine from given turret (see setMagazineTurretAmmo for more info)
- [moveInTurret](../../commands/moveInTurret.md): Moves the soldier into the vehicle's turret. (Immediately, without animation).
- [removeAllMagazinesTurret](../../commands/removeAllMagazinesTurret.md): Removes all magazines from the given turret or from all turrets. Use turret path [-1] for driver's turret or [] for all turrets.
- [removeMagazinesTurret](../../commands/removeMagazinesTurret.md): Removes all magazines of the given type from given vehicle. Use turret path [-1] for driver's turret.
- [removeMagazineTurret](../../commands/removeMagazineTurret.md): Removes the magazine from the turret. Use turret path [-1] for driver's turret.
- [removeWeaponTurret](../../commands/removeWeaponTurret.md): Removes weapon from the turret. Use turret path [-1] for driver's turret.
- [selectWeaponTurret](../../commands/selectWeaponTurret.md): Selects the given weapon on the specified turret. Use turret path [-1] for the driver's turret.
- [setMagazineTurretAmmo](../../commands/setMagazineTurretAmmo.md): Sets ammo count to given amount for given turret magazine.
- [setTurretLimits](../../commands/setTurretLimits.md): Sets the rotation and elevation limits for the given turret. The limits are relative to model orientation of the turret. For example to allow 360 degree turning it is enough to set turn limits to (-180, 180).
- [setTurretOpticsMode](../../commands/setTurretOpticsMode.md): Set the current optics mode of the optics in the turret occupied by the specified unit. Alternatively, you can specify a vehicle and turret path instead of a unit.
- [turretLocal](../../commands/turretLocal.md): Checks if a turret is local.
- [turretOwner](../../commands/turretOwner.md): Returns id of the turret's owner. Returns 0 on non-server and SP.
- [turretUnit](../../commands/turretUnit.md): Returns the unit in the vehicle turret. To find turret path of known unit, see unitTurret.
- [unitTurret](../../commands/unitTurret.md): Returns the turret path the given vehicle's gunner is in. To get the turret's unit see turretUnit.
- [weaponsTurret](../../commands/weaponsTurret.md): Returns all weapons of a given turret. Use turret path [-1] for driver's turret.
