BIS fnc wpRestricted: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function" to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
||
Line 9: | Line 9: | ||
<br>maxSpeed: [[Number]] - maximal speed in km/h (default: -1) | <br>maxSpeed: [[Number]] - maximal speed in km/h (default: -1) | ||
|p2= maxTime: [[Number]] - how much time spent outside of the limits will lead to fail (default: -1)|p3= failCode: [[Code]] - code executed when maxTime is reached (default: {})|p4= visualize: [[Boolean]] - true to show hint (default: false)|p5= warnCode: [[Code]] - code executed when unit get out of limits (default: {})| [[Nothing]] | |p2= maxTime: [[Number]] - how much time spent outside of the limits will lead to fail (default: -1)|p3= failCode: [[Code]] - code executed when maxTime is reached (default: {})|p4= visualize: [[Boolean]] - true to show hint (default: false)|p5= warnCode: [[Code]] - code executed when unit get out of limits (default: {})| [[Nothing]] | ||
|x1= <code><nowiki>[</nowiki>[[player]], [[objNull]], 0, [250, -1, 150, -1], 30, {HSim_RestrictedFlight = [[false]]}, true] BIS_fnc_wpFormation;</code>| exec=spawn | |x1= <code><nowiki>[</nowiki>[[player]], [[objNull]], 0, [250, -1, 150, -1], 30, {HSim_RestrictedFlight = [[false]]}, true] BIS_fnc_wpFormation;</code>| exec=spawn | ||
Revision as of 19:50, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- spawn
- Groups:
- Waypoints
Syntax
- Syntax:
- Syntax needed
- Parameters:
- failCode: Array - flight limits in format [minAlt, maxAlt, minSpeed, maxSpeed]
minAlt: Number - minimal altitude in meters above ground level (default: -1)
maxAlt: Number - maximal altitude in meters above ground level (default: 60)
minSpeed: Number - minimal speed in km/h (default: -1)
maxSpeed: Number - maximal speed in km/h (default: -1) - maxTime: Number - how much time spent outside of the limits will lead to fail (default: -1)
- failCode: Code - code executed when maxTime is reached (default: {})
- visualize: Boolean - true to show hint (default: false)
- warnCode: Code - code executed when unit get out of limits (default: {})
- Return Value:
- Return value needed
Examples
- Example 1:
[player, objNull, 0, [250, -1, 150, -1], 30, {HSim_RestrictedFlight = false}, true] BIS_fnc_wpFormation;
Additional Information
- See also:
- See also needed
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