Jump to content

Function to check if position is on road?


A Hamburgler

Recommended Posts

I found this in the moose framework.

COORDINATE:GetClosestPointToRoad()

 

I’m thinking about doing a distance check from my first coordinate to the closet road and if it’s within a certain distance my first coordinate is on a road or very close to it. Now I just gotta figure out how to do that. So if someone has an idea let me know. Just hope it works for runways because that what I really need it for.

 

Edit: After some deep research I found this http://wiki.hoggitworld.com/view/DCS_func_getSurfaceType looks like it will work will try it when I get home.


Edited by A Hamburgler
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...