BIS_fnc_nearestRoad

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 0.76
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
0.76

Description

Description:
Find the nearest road segment to certain position, within given radius.

Syntax

Syntax:
[center, radius, blacklist] call BIS_fnc_nearestRoad
Parameters:
center: Position
radius: Number - (Optional, default 50) search radius from center
blacklist: Array - (Optional, default []) blacklisted road objects
Return Value:
Object - nearest road object, objNull if not found

Examples

Example 1:
_nearestRoad = [getPosATL player, 500] call BIS_fnc_nearestRoad;
Example 2:
_nearestRoad = [getPosATL vehicle player, 50, getPosATL vehicle player nearRoads 20] call BIS_fnc_nearestRoad;

Additional Information

Execution:
call
Multiplayer:
-
See also:
nearRoadsisOnRoadroadAtroadsConnectedTo

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section