BIS fnc wpRestricted: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix regex replace)
Tag: Undo
m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>")
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
|game1= tkoh
|game1= tkoh
|version1= 1.00
|version1= 1.00
|game2= arma3
|version2= 0.50


|gr1= Waypoints
|gr1= Waypoints
Line 15: Line 12:
|exec= spawn
|exec= spawn


|s1= [[Custom_Waypoints#Function|arguments]]: [limits, maxTime, failCode, visualize, warnCode]
|s1= [[Custom Waypoints#Function|Custom Waypoint arguments]]: [limits, maxTime, failCode, visualize, warnCode]


|p1= failCode: [[Array]] - flight limits in format [minAlt, maxAlt, minSpeed, maxSpeed]:
|p1= failCode: [[Array]] - flight limits in format [minAlt, maxAlt, minSpeed, maxSpeed]:
Line 33: Line 30:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[<nowiki/>[[player]], [[objNull]], 0, [250, -1, 150, -1], 30, { HSim_RestrictedFlight = [[false]] }, [[true]]] [[spawn]] [[BIS_fnc_wpFormation]];</code>
|x1= <sqf>[player, objNull, 0, [250, -1, 150, -1], 30, { HSim_RestrictedFlight = false }, true] spawn BIS_fnc_wpFormation;</sqf>


|seealso=
|seealso=
}}
}}

Latest revision as of 17:11, 13 July 2022

Hover & click on the images for description

Description

Description:
RESTRICTED custom waypoint. Player must fly in given limits.
Execution:
spawn
Groups:
Waypoints

Syntax

Syntax:
Custom Waypoint arguments: [limits, maxTime, failCode, visualize, warnCode]
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:
Nothing

Examples

Example 1:
[player, objNull, 0, [250, -1, 150, -1], 30, { HSim_RestrictedFlight = false }, true] spawn 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