Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.70

Description

Description:

Controls whether a vehicle turret stays fixed at its aimed direction, independently from the vehicle movement. By default, the values from the vehicle configuration are used (which are normally set to true).

Note: Not available in V2.x (although V3.x+ has the command).

Note: turret may still have independent optics stabilization feature that causes sight picture to be stabilized, even if turret stabilization is disabled. Please use script command opticsStabilizationOverride to control it.

Syntax

Syntax:vehicle setTurretStabilization [turret, [horizontal, vertical]]
Parameters:
  • vehicle : Object - Vehicle with turret.
  • turret: Array - Turret to stabilize.
  • horizontal: Boolean - If true, then the horizontal axis is stabilized.
  • vertical: Boolean - If true, then the vertical axis is stabilized.
Return Value:Nothing

Alternative Syntax

Syntax:vehicle setTurretStabilization [turret]
Parameters:
  • vehicle : Object - Vehicle with turret.
  • turret: Array - Turret to be returned to its default stabilization settings.
Return Value:Nothing

Examples

Examples:
Disable stabilization on both axes:
tank1 setTurretStabilization [[0],[false,false]]

Return to default behavior:
tank1 setTurretStabilization [[0]]

Additional Information

See also: turretLockOn, turretLeadopticsStabilizationOverride
Multiplayer:In version prior to V3.20, the command can only be applied to local vehicles / turrets.
Problems:

Notes