setTurretLimits: 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= local |eff= global |descr= Set the rotation and elevation limits for the given turret. The limits can only be set wit...") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 17: | Line 17: | ||
|p2= turret: [[Array]] - turret path | |p2= turret: [[Array]] - turret path | ||
|p3= | |p3= minTurn: [[Number]] - from 0 to -angle in degrees (left) | ||
|p4= maxTurn: [[Number]] - | |p4= maxTurn: [[Number]] - from 0 to +angle in degrees (right) | ||
|p5= minElev: [[Number]] - from 0 to -angle in degrees (down) | |p5= minElev: [[Number]] - from 0 to -angle in degrees (down) | ||
|p6= maxElev: [[Number]] - from 0 to +angle in degrees (up) | |p6= maxElev: [[Number]] - from 0 to +angle in degrees (up) |
Revision as of 13:30, 11 January 2023
Description
- Description:
- Set the rotation and elevation limits for the given turret. The limits can only be set within the limits defined in config and cannot exceed them. To reset to config defaults pass the turret argument only (Example 2).
- Groups:
- Turrets
Syntax
- Syntax:
- vehicle setTurretLimits [turret, minTurn, maxTurn, minElev, maxElev]
- Parameters:
- vehicle: Object vehicle the turret belongs to
- turret: Array - turret path
- 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)
- Return Value:
- Nothing
Examples
- Example 1:
- m2 setTurretLimits [[0], -45, 45, -10, 10];
- Example 2:
- m2 setTurretLimits [[0]]; //reset
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