nearRoads: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 44: Line 44:
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 12:59, 25 March 2013

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: Array or Object - Position or object
radius: Number -
Return Value:
Array

Examples

Example 1:
_list = player nearRoads 50

Additional Information

See also:
nearRoads (VBS2)roadsConnectedTo (VBS2)roadsConnectedTo

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

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. [1]

Bottom Section