Jump to content
Sign in to follow this  
Acecool

Detecting nearest road?

Recommended Posts

Ok, so I know there are ways of detecting nearest objects, what about roads?

Also, does anyone know the id for a road object, or large flat asphalt area? OFP had those accessible in the editor, but I dont see it in the arma 2 editor...

Share this post


Link to post
Share on other sites

try this

_roadlist = _pos nearRoads 10;

Will return an array of all road segments:

_pos: the center of the circle to look for roads.

10: the radius to search for roads.

Use search.

Share this post


Link to post
Share on other sites

I looked on the bistudio wiki but didnt see it.

Thanks!

Oops, it does detect, just need to do different math to get desired results :-P

Edited by Acecool

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×