Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

I can increase/decrease the barometric pressure in my Lua scripts by using controls 65883 and 65884 with parameter 1. However, in aircraft with a G1000, this control requires a parameter value 5. Is there a generic way to use these controls?

If not, I can use either 1 or 5 as parameter but then I need to know if a G1000 is present in the plane. Is there a way to find that out?

Thanks,

-Emile.

Posted
2 hours ago, Djeez said:

Is there a generic way to use these controls?

No, not that I'm aware of.

2 hours ago, Djeez said:

If not, I can use either 1 or 5 as parameter but then I need to know if a G1000 is present in the plane. Is there a way to find that out?

Maybe, but not that I know of., sorry.

If its just the case of using a different parameter for different aircraft, you could either use profiles, or you could maybe set the parameter to the correct value in your lua based upon something you know (or have access to), such as the aircraft name/title. 

Posted
42 minutes ago, John Dowson said:

No, not that I'm aware of.

Maybe, but not that I know of., sorry.

Thanks for thinking with me. My work-around is to call the control twice, once with parameter 1 and once with parameter 5. This looks weird but it does not seem to have any negative effect.
 

Emile.

  • Like 1

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.