Sign in to follow this  
Guest Real Old Salt

One shot timed event

Recommended Posts

I'm having trouble getting my mind around this and could use some help. What I want to do is simulate water injection for an old military style jet using an XML gauge. I've tested the process using afterburner with a 10% boost and the results are about right. what I need to do now is limit this event to a one time only use for a max of 50 secs. I have searched the forum for timers,timed event etc. lookiing for help but what I've found hasn't been the right answer.

Share this post


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

Hello TRY:- The timer (P:Absolute time, seconds) (L:Switch disengage timer, seconds) > if{ (>K:AFTER_BURNER_OFF) } The click (>K:AFTER_BURNER_ON) (P:Absolute time, seconds) 50 + (>L:Switch disengage timer, seconds) This works OK but not sure about Afterburner Value. (can't fly fast jets)

Share this post


Link to post
Share on other sites

Thanks a lot! I'll give that a shot.

Share this post


Link to post
Share on other sites

Hi,Not sure, but may be better to use:(P:Absolute time, seconds) (L:Switch disengage timer,seconds) > if{ (A:TURB ENG1 AFTERBURNER,bool) if{ (>K:TOGGLE_AFTERBURNER1) } } (A:TURB ENG1 AFTERBURNER,bool) ! if{ (>K:TOGGLE_AFTERBURNER1) } (P:Absolute time, seconds) 50 + (>L:Switch disengage timer,seconds)Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

Thank you also. The first code works except I've been struggling withthe fact that afterburner is a toggle event.I'll give this a try.

Share this post


Link to post
Share on other sites

Gentlemen (ladies?) I'm a happy man! That has worked just fine.I altered one of the "click" lines slightly so that this will now only work once per "turn-around".(A:TURB ENG1 AFTERBURNER,bool) ! (L:Switch disengage timer,seconds) > if{ (>K:TOGGLE_AFTERBURNER1) } Thank you again.

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