enableGunStabilization

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Enables/disables turret gun stabilisation.
Groups:
Camera ControlTurrets

Syntax

Syntax:
vehicle enableGunStabilization [mode, turretPath]
Parameters:
vehicle: Object
mode: Number - can be one of:
  • -1 - clear override
  • 0 - no stabilisation
  • 1 - elevation stabilisation
  • 2 - traverse stabilisation
  • 3 - both
turretPath: Turret Path
Return Value:
Number - the previous mode, also returns -1 on error

Examples

Example 1:
vehicle player enableGunStabilization [3, [0]];

Additional Information

See also:
enableDirectionStabilization directionStabilizationEnabled lockCameraTo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note