BIS fnc nearestHelipad: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )R([a-z])" to "$1r$3") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
|descr= Finds the nearest helipad of given type. | |descr= Finds the nearest helipad of given type. | ||
|s1= [position, radius, random, types] | |s1= [position, radius, random, types] call [[BIS_fnc_nearestHelipad]] | ||
|p1= position: [[Array]] format [[Position]] - (Optional, default [[position]] [[vehicle]] [[player]]) | |p1= position: [[Array]] format [[Position]] - (Optional, default [[position]] [[vehicle]] [[player]]) center position | ||
|p2= radius: [[Number]] - (Optional, default 999999) | |p2= radius: [[Number]] - (Optional, default 999999) radius of the area to search in meters | ||
|p3= random: [[Boolean]] - (Optional, default [[false]]) | |p3= random: [[Boolean]] - (Optional, default [[false]]) if [[true]] a random helipad will be selected if multiple are found | ||
|p4= types: [[Array]] - (Optional, default ["Heliport"]) | |p4= types: [[Array]] - (Optional, default ["Heliport"]) location types to be searched for. See [[nearestLocations]] for more information {{Feature|arma3|Default value won't work in {{arma3}}. Only types listed in CfgLocationTypes are supported}} | ||
|r1= [[Array]] in format: | |r1= [[Array]] in format: | ||
Line 27: | Line 27: | ||
|x1= | |x1= | ||
|seealso= [[nearestObjects]] | |||
}} | }} |
Latest revision as of 12:32, 8 November 2023
Description
- Description:
- Finds the nearest helipad of given type.
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- [position, radius, random, types] call BIS_fnc_nearestHelipad
- Parameters:
- position: Array format Position - (Optional, default position vehicle player) center position
- radius: Number - (Optional, default 999999) radius of the area to search in meters
- random: Boolean - (Optional, default false) if true a random helipad will be selected if multiple are found
- types: Array - (Optional, default ["Heliport"]) location types to be searched for. See nearestLocations for more information
- Return Value:
- Array in format:
Examples
- Examples:
- Example needed
Additional Information
- See also:
- nearestObjects
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