getTurretLimits

From Bohemia Interactive Community
Revision as of 13:30, 11 January 2023 by Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.12 |arg= global |descr= Returns the rotation and elevation limits for the given turret. |gr1= Turrets |s1= vehicle getTurre...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns the rotation and elevation limits for the given turret.
Groups:
Turrets

Syntax

Syntax:
vehicle getTurretLimits turret
Parameters:
vehicle: Object vehicle the turret belongs to
turret: Array - turret path
Return Value:
Array in format [minTurn, maxTurn, minElev, maxElev, overridden], where:
  • minTurn: Number - from 0 to -angle in degrees (left)
  • maxTurn: Number - from 0 to +angle in degrees (right)
  • minElev: Number - from 0 to -angle in degrees (down)
  • maxElev: Number - from 0 to +angle in degrees (up)
  • overridden: Boolean - if custom limits were applied

Examples

Example 1:
_limits = m2 getTurretLimits [0];

Additional Information

See also:
setTurretLimits setTurretOpticsMode turretLocal selectWeaponTurret

Notes

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