XPLMFindFirstNavAidOfType

From X-Plane SDK
Jump to: navigation, search

XPLMFindFirstNavAidOfType

XPLM_API XPLMNavRef           XPLMFindFirstNavAidOfType(
                                   XPLMNavType          inType);    

This routine returns the ref of the first navaid of the given type in the database or XPLM_NAV_NOT_FOUND if there are no navaids of that type in the database. You must pass exactly one nav aid type to this routine.

WARNING: due to a bug in the SDK, when fix loading is disabled in the rendering settings screen, calling this routine with fixes returns a bogus nav aid. Using this nav aid can crash x-plane.