Jump to content
Sign in to follow this  
Ruckus

Finding Roads in script

Recommended Posts

Is there a way to find roads in script? I've tryed with nearobject and a couple other methods but there doesn't seem to be a class for that?

Also I was wondering if there was a new version of the Dialog creator software that was available for OFP. I've tried it, but I get a error when the dialog opens which complains about several different colors for some buttons that I added to the dialog. Any Ideas?

Thanks in advance

Share this post


Link to post
Share on other sites

(nearestObjects [player,[], 10]) - ((getPos player) nearObjects 10)

Returns an array of objects within 10m of the player that have no class, including things like roads and trees. It's a start, but I can't think of any way to filter out non-roads other than string manipulation, or maybe checking the heights of the object (roads should be quite close to ground level). It won't be fast...

Share this post


Link to post
Share on other sites

fasad, thanks for taking the time to check that out and make a suggestion. I'll have to give that a whirl and see what it can do.

Thanks again smile_o.gif

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  

×