nearRoads: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\[\[Category:ArmA 2: New Scripting Commands List\|{{uc:{{PAGENAME}}}}\]\]\s*" to "")
m (removed dead link to image from note)
Line 42: Line 42:
<dt class="note">'''[[User:Tankbuster|Tankbuster ]]'''<dd class="note">
<dt class="note">'''[[User:Tankbuster|Tankbuster ]]'''<dd class="note">
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.
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.
Click below for picture.
[http://i156.photobucket.com/albums/t16/pauleden/gaming/nearroadsbig.jpg]
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 02:43, 23 December 2019

Hover & click on the images for description

Description

Description:
Find the road segments within the circle of given radius.
Groups:
Uncategorised

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:
isOnRoadroadAtsurfaceIsWaterroadsConnectedTofindNearestEnemynearestBuildingnearestObjectnearestObjectsnearObjectsnearestLocationnearEntitiesnearTargetsnearSuppliesnearestLocationWithDubbingnearObjectsReady

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note

Notes

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.

Bottom Section