Turrets
34 scripting commands. Also as Markdown for agents.
- addMagazinesTurretAdds given number of a magazine to the given turret. Use turret path `[-1]` for driver's turret.
- addMagazineTurretAdds a magazine to the turret. Use turret path `[-1]` for driver's turret.
- addWeaponTurretAdds a weapon to the turret. Use turret path [-1] for driver's turret.
- allTurretsReturns array of available turret paths from vehicle object.
- assignAsTurretAssigns the soldier to turret.
- currentMagazineDetailTurretReturns 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…
- currentMagazineTurretReturns 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…
- currentWeaponTurretReturns the name of the currently selected weapon on specified turret. Use turret path [-1] for driver's turret.
- directionStabilizationEnabledGet state of direction stabilization. This command returns true if the current optic mode of the selected turret has direction stabilization…
- enableDirectionStabilizationEnables / disables direction stabilization of turrets. This command only has an effect if the current optic mode of the selected turret has…
- enableGunStabilizationEnables/disables turret gun stabilisation.
- enablePersonTurretEnables or disables firing from a vehicle cargo position. To get the turret path use assignedVehicleRole or getCargoIndex command.
- getTurretLimitsReturns the rotation and elevation limits for the given turret.
- getTurretOpticsModeGet 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…
- loadMagazineInitiates the loading action on given weapon of the turret of a transport. So the new magazine is not available instantly, yet according to the…
- lockedTurretCheck whether gunner position of the vehicle turret is locked.
- lockTurretLock 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…
- magazinesAllTurretsReturns all magazines (including empty) from all vehicle turrets (including driver turret [-1]) and their ammo counts. Since Arma 3 v2.08.148327 it…
- magazinesTurretReturns all magazines of given turret. Use turret path [-1] for driver's turret. Alternatively, use magazinesAllTurrets.
- magazineTurretAmmoReturns ammo count of given magazine from given turret (see setMagazineTurretAmmo for more info)
- moveInTurretMoves the soldier into the vehicle's turret. (Immediately, without animation).
- removeAllMagazinesTurretRemoves all magazines from the given turret or from all turrets. Use turret path [-1] for driver's turret or [] for all turrets.
- removeMagazinesTurretRemoves all magazines of the given type from given vehicle. Use turret path [-1] for driver's turret.
- removeMagazineTurretRemoves the magazine from the turret. Use turret path [-1] for driver's turret.
- removeWeaponTurretRemoves weapon from the turret. Use turret path [-1] for driver's turret.
- selectWeaponTurretSelects the given weapon on the specified turret. Use turret path [-1] for the driver's turret.
- setMagazineTurretAmmoSets ammo count to given amount for given turret magazine.
- setTurretLimitsSets the rotation and elevation limits for the given turret. The limits are relative to model orientation of the turret. For example to allow 360…
- setTurretOpticsModeSet the current optics mode of the optics in the turret occupied by the specified unit. Alternatively, you can specify a vehicle and turret path…
- turretLocalChecks if a turret is local.
- turretOwnerReturns id of the turret's owner. Returns 0 on non-server and SP.
- turretUnitReturns the unit in the vehicle turret. To find turret path of known unit, see unitTurret.
- unitTurretReturns the turret path the given vehicle's gunner is in. To get the turret's unit see turretUnit.
- weaponsTurretReturns all weapons of a given turret. Use turret path [-1] for driver's turret.