Jump to content
Sign in to follow this  
n4gix

Current Airspace Frequency...

Recommended Posts

Bill, what you've done to "fake" the frequency there is just use the nearestairport frequency query? What are you using to set the currentline?


Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Share this post


Link to post
Share on other sites

If we are still talking about airspacefrequency, you don't have to fake them.See pic in the other thread.

Share this post


Link to post
Share on other sites
Bill, what you've done to "fake" the frequency there is just use the nearestairport frequency query? What are you using to set the currentline?
Nearest searches return multiple entities if MaxItems and MaxDistance are large enough (which they usually are). To choose one of the entities in the list you have to Set the CurrentLine variable. In a NearestAirport case, its NearestAirportCurrentLine, although Bills post was talking about NearestAirspace, not NearestAirport...

Share this post


Link to post
Share on other sites

Bob I am familiar with this. Jan seems to have cleared my vision. I took Bill's posts to mean that I can not get the frequency of the airspace in FS9 and understood that he took the closest center freq from the nearest airport list. I wanted to know how you would search through the list to find the center freq but not necessary anymore.


Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Share this post


Link to post
Share on other sites

 

Bob I am familiar with this. Jan seems to have cleared my vision. I took Bill's posts to mean that I can not get the frequency of the airspace in FS9 and understood that he took the closest center freq from the nearest airport list. I wanted to know how you would search through the list to find the center freq but not necessary anymore.
Okay.... Bill just didn't include Center in the NearsetAirspaceQuery declaration... Edited by Propwash

Share this post


Link to post
Share on other sites

 

Yes, I remembered to check my own Wiki entry where I'd stashed a copy of the FS9 GPS variables... ;)Well, they don't work in either FS9 or FSX, but I did manage to 'fake it' a bit by fetching the closest CENTER frequency (which is close enough for me).Hm, I haven't check out (@c:NearestAirspaceQuery,enum) yet... Maybe that'll give me an index value for the frequency... :(
That bit is what mislead me I suppose. Thanks anyway.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...