BIS fnc nearestHelipad: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (page formatting)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |DESCRIPTION=
| Finds the nearest helipad of given type. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_nearestHelipad]]; --> |SYNTAX=
| [position, radius, random, types] [[call]] [[BIS_fnc_nearestHelipad]] |SYNTAX=


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


| |RETURNVALUE=
|p2= radius: [[Number]] - (Optional, default 999999) Radius of the area to search in meters |PARAMETER2=
 
|p3= random: [[Boolean]] - (Optional, default [[false]]) If [[true]] a random helipad will be selected if multiple are found |PARAMETER3=
 
|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}}}}  |PARAMETER4=
 
|[[Array]] in format:
* 0: [[Position]] - Position of the selected location
* 1: [[Object]] - Helipad
* 2: [[Position]] - Position of the helipad |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:58, 20 September 2019


Hover & click on the images for description

Description

Description:
Finds the nearest helipad of given type.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[position, radius, random, types] call BIS_fnc_nearestHelipad
Parameters:
position: 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
Return Value:
Array in format:

Examples

Example 1:

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

Notes

Bottom Section