nearRoads (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.20
Description
- Description:
- Find the road segments within the circle of given radius.
Returned road objects are not sorted in regards to their distance to the center position.
Syntax
- Syntax:
- objpos nearRoads radius
- Parameters:
- objpos: Object or Position
- radius: Number
- Return Value:
- Array of Objects
Examples
- Example 1:
_road = player nearRoads 50
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- roadsConnectedTo

