BIS fnc HUDLimits: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(27 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| tkoh | | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
| Set helicopter advanced flight model HUD limits and prevents overwriting existing values. See also [[setHUDMovementLevels]]. | |gr1= GUI | ||
|descr= Set helicopter advanced flight model HUD limits and prevents overwriting existing values. See also [[setHUDMovementLevels]]. | |||
{{Feature|informative| | |||
* default value is 0, which means no limits were assigned | * default value is 0, which means no limits were assigned | ||
* using 0 in min or max value will hide the corresponding limit | * using 0 in min or max value will hide the corresponding limit | ||
* same or higher priority will replace currently set priority | * same or higher priority will replace currently set priority | ||
* using a negative priority will reset the values if absolute value is same or higher than current level | * using a negative priority will reset the values if absolute value is same or higher than current level | ||
}} | |||
| [speedLimit, altLimit, dirLimit] call [[BIS_fnc_HUDLimits]] | |s1= [speedLimit, altLimit, dirLimit] call [[BIS_fnc_HUDLimits]] | ||
|p1= speedLimit: [[Array]] in format [priority, min, max]: | |p1= speedLimit: [[Array]] in format [priority, min, max]: | ||
* priority: [[Number]] | * priority: [[Number]] | ||
* min: [[Number]] | * min: [[Number]] | ||
* max: [[Number]] | * max: [[Number]] | ||
|p2= altLimit: [[Array]] in format [priority, min, max]: | |p2= altLimit: [[Array]] in format [priority, min, max]: | ||
* priority: [[Number]] | * priority: [[Number]] | ||
* min: [[Number]] | * min: [[Number]] | ||
* max: [[Number]] | * max: [[Number]] | ||
|p3= dirLimit: [[Array]] in format [priority, min, max, target]: | |p3= dirLimit: [[Array]] in format [priority, min, max, target]: | ||
Line 32: | Line 33: | ||
* min: [[Number]] - you can set a "negative" value by adding 360 (e.g using 270 instead of -90) | * min: [[Number]] - you can set a "negative" value by adding 360 (e.g using 270 instead of -90) | ||
* max: [[Number]] | * max: [[Number]] | ||
* target: [[Position]] or [[Object]] - (Optional, default [0,0,0]) the direction relative target | * target: [[Position]] or [[Object]] - (Optional, default [0,0,0]) the direction relative target | ||
| | |r1= [[Array]] - current value of [[HUDMovementLevels]] | ||
| | |x1= <sqf>[[0,0,0], [1, 0, 50], [0,0,0]] call BIS_fnc_HUDLimits; // limits altitude on HUD to 50m max</sqf> | ||
| [[ | |x2= <sqf>[[0,0,0], [0, 0, 0], [1,330,30, myTarget]] call BIS_fnc_HUDLimits; // limits orientation towards myTarget by ±30°</sqf> | ||
|seealso= [[HUDMovementLevels]] [[setHUDMovementLevels]] | |||
}} | }} | ||
Latest revision as of 15:25, 13 July 2022
Description
- Description:
- Set helicopter advanced flight model HUD limits and prevents overwriting existing values. See also setHUDMovementLevels.
- Execution:
- call
- Groups:
- GUI
Syntax
- Syntax:
- [speedLimit, altLimit, dirLimit] call BIS_fnc_HUDLimits
- Parameters:
- speedLimit: Array in format [priority, min, max]:
- altLimit: Array in format [priority, min, max]:
- dirLimit: Array in format [priority, min, max, target]:
- Return Value:
- Array - current value of HUDMovementLevels
Examples
- Example 1:
- Example 2:
- [[0,0,0], [0, 0, 0], [1,330,30, myTarget]] call BIS_fnc_HUDLimits; // limits orientation towards myTarget by ±30°
Additional Information
- See also:
- HUDMovementLevels setHUDMovementLevels
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