Sign in to follow this  
spokes2112

How to check if the flightsim is paused or not

Recommended Posts

Hi All,I have a counter (not timer) which should be stopped when the flightsimulator is paused. I know that there is a K: variable for activating pause but I couldn't find an A: variable for a scan. Does anybody know which variable could be used here or a trck of how to realize it? It's for a XML gauge.Best RegardsMatthias

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Roman,I've tried A:Sim Disabled,bool but it doesn't work. I will try the other methods P: and E: and will let you know if they work or not.Thank you for the tip.Best RegardsMatthias

Share this post


Link to post
Share on other sites

Do a search in the archives of this forum. I think I've documented this once, as well as to know if you are in slew or not.Hope this helps!

Share this post


Link to post
Share on other sites

Matthias, This little snippet seems to work. Tested it while changing time and time zones and was OK.. G:Var2 gives the output of being paused or not.It checks whether G:var1 = Time, if so it returns a pause. It then updates G:Var1 w/ time. By the time the gauge updates and is not paused time will be different. (P:Absolute time, seconds) (G:Var1) == if{ 1 (>G:Var2) } els{ 0 (>G:Var2) } (P:Absolute time, seconds) (>G:Var1)Hope this helps..Regards,RomanGREEN BAY PACKERS][/i

Share this post


Link to post
Share on other sites

Hi Roman,Absolutely great! That's exactly what I'm looking for. I've replaced the second G: variable with a L: variable to use it in different XML files and it works perfect.Thank you very much for the tip.Best RegardsMatthias

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