nearRoads: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ") |
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= * )+" to "") |
||
Line 16: | Line 16: | ||
|p2= radius: [[Number]] - search radius in meters | |p2= radius: [[Number]] - search radius in meters | ||
| [[Array]] of [[Object]]s - road segments within radius | | [[Array]] of [[Object]]s - road segments within radius |
Revision as of 23:05, 16 February 2021
Description
- Description:
- Description needed
- Groups:
- Roads and AirportsObject Detection
Syntax
- Syntax:
- Syntax needed
- Parameters:
- pos: Object or Array in format PositionAGL or Position2D, center of search radius
- radius: Number - search radius in meters
- Return Value:
- Return value needed
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:
- 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
- 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.