Sign in to follow this  
Guest HC001ST - Stick

Timing a boolean??

Recommended Posts

I need to know, in XML, how long the starter is active, in seconds.In other wordssomething like: (A:General eng1 starter, bool) if{ (P:absolute tme,seconds) (>L:secs,number) } But this gives me, as you guys know, weird and wonderful numbers . What I really need is to know how long the starter has been active, store that value in seconds, and then reset that value to zero when the starter is not active.Any Hints?Steve

Share this post


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

Far easier to setup your own XML var counter, and then create a countdown. The timing of this will be dependent on the gauge update choosen, and framerate.Alternatively, you could get the actual time for the FS vars and use that to "time" your starter.

Share this post


Link to post
Share on other sites

Hi Steve,maybe this can help,, not tested (A:General eng1 starter, bool) if{ (P:absolute tme,seconds) (L:secs_start,number) - (>L:secs,number) } els{ (P:absolute time,seconds) (>L:secs_start,number) 0 (>L:secs,number) }From past posts it looking like your doing hot starts and starter fails ??? COOL!Regards,Roman(KGRB)http://home.new.rr.com/spokes2112/images/Image2.gif

Share this post


Link to post
Share on other sites

Thanks for the suggestions guys. I chose the easy way out: (A:General eng1 starter, bool) if{ (L:Timestart,enum) 1 + (>L:Timestart,enum) } els{ 0 (>L:Timestart,enum) } Works like a charm :-))Steve

Share this post


Link to post
Share on other sites

Oh, ok. Now I see what you were going for. I knew it had something to do with the start procedure, but I was thinking you were timing something else.Yeah, once you got Update, easy enough.

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