nearRoads: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
Lou Montana (talk | contribs) m (Text replacement - " <h3 style='display:none'>Notes</h3>" to "") |
||
Line 34: | Line 34: | ||
}} | }} | ||
<dl class='command_description'> | <dl class='command_description'> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> |
Revision as of 15:17, 18 January 2021
Description
- Description:
- Find the road segments within the circle of given radius.
- Groups:
- Roads and AirportsObject Detection
Syntax
- Syntax:
- pos nearRoads radius
- Parameters:
- pos: Object or Array in format PositionAGL or Position2D, center of search radius
- radius: Number - search radius in meters
- Return Value:
- Array of Objects - road segments within radius
Examples
- Example 1:
_list = player nearRoads 50;
- Example 2:
_list = (position _unit) nearRoads 50;
- Example 3:
_list = [1800,5700] nearRoads 50;
Additional Information
- See also:
- isOnRoadroadAtsurfaceIsWaterroadsConnectedTofindNearestEnemynearestBuildingnearestObjectnearestObjectsnearObjectsnearestLocationnearEntitiesnearTargetsnearSuppliesnearestLocationWithDubbingnearObjectsReadygetRoadInfonearestTerrainObjects
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
- Posted on 26 Mar, 2011
- Tankbuster
- NearRoads always gets data in the same order. In a 300 meter radius around Feruz Abad, for example, the first one is in the south-west corner and the last one is in the north-east.