BIS fnc nearestHelipad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )C([a-z])" to "$1c$3")
Line 13: Line 13:
|s1= [position, radius, random, types] call [[BIS_fnc_nearestHelipad]]
|s1= [position, radius, random, types] call [[BIS_fnc_nearestHelipad]]


|p1= position: [[Array]] format [[Position]] - (Optional, default [[position]] [[vehicle]] [[player]]) Center position
|p1= position: [[Array]] format [[Position]] - (Optional, default [[position]] [[vehicle]] [[player]]) center position


|p2= radius: [[Number]] - (Optional, default 999999) Radius of the area to search in meters
|p2= radius: [[Number]] - (Optional, default 999999) Radius of the area to search in meters

Revision as of 13:22, 8 November 2023

Hover & click on the images for description

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
Arma 3
Default value won't work in Arma 3. Only types listed in CfgLocationTypes are supported
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