getTurretLimits: Difference between revisions
Jump to navigation
Jump to search
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...") |
Cat Harsis (talk | contribs) m (2.12 released, no longer only dev branch) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
|s1= vehicle [[getTurretLimits]] turret | |s1= vehicle [[getTurretLimits]] turret | ||
|p1= vehicle: [[Object]] vehicle the turret belongs to | |p1= vehicle: [[Object]] - vehicle the turret belongs to | ||
|p2= turret: [[Array]] - turret path | |p2= turret: [[Array]] - turret path | ||
Line 23: | Line 23: | ||
* overridden: [[Boolean]] - if custom limits were applied | * overridden: [[Boolean]] - if custom limits were applied | ||
|x1= <sqf> | |x1= <sqf> | ||
private _turretLimits = m2 getTurretLimits [0]; | |||
_turretLimits params ["_minTurn", "_maxTurn", "_minElev", "_maxElev", "_overridden"]; | |||
</sqf> | |||
|seealso= [[setTurretLimits]] [[setTurretOpticsMode]] [[turretLocal]] [[selectWeaponTurret]] | |seealso= [[setTurretLimits]] [[setTurretOpticsMode]] [[turretLocal]] [[selectWeaponTurret]] | ||
}} | }} |
Latest revision as of 15:41, 28 February 2023
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:
Examples
- Example 1:
Additional Information
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