Jump to content
Sign in to follow this  
phjvh

xml failure

Recommended Posts

Hi Is it possible to toggle a function in a specific situation?E.g. engine failure caused by low oilpressure or high oiltemperature etc.I tried some code's, but that caused a brain-distortion.I thought about something like this, but of course.... no succes!(>K:TOGGLE_ENGINE1_FAILURE) if{ (A:General eng1 oil temperature, celsius) 200 > } I'm curious,http://ftp.avsim.com/dcforum/User_files/3dbc3a9471a37f1c.jpg

Share this post


Link to post
Share on other sites
Guest

>Hi >>Is it possible to toggle a function in a specific situation? >E.g. engine failure caused by low oilpressure or high >oiltemperature etc. >I tried some code's, but that caused a brain-distortion. >I thought about something like this, but of course.... no >succes! >> > >(>K:TOGGLE_ENGINE1_FAILURE) if{ (A:General eng1 >oil temperature, celsius) 200 > } > Well, the if statment is inside out, for one thing... think backwards and upside down! :)((A:General eng1 oil temperature, celsius) 200 >) if{ (>TOGGLE_ENGINE1_FAILURE) }

Share this post


Link to post
Share on other sites
Guest

Maybe a zero has to be stored, like:0 (>K:TOGGLE_ENGINE1_FAILURE)This works for me anyway. In addition, I tend to use all my "runtimes" in the following fashion, and in separate gauges:(Check this) if{ Do your stuff }I'm not sure if it's by the book, but it works for me :)

Share this post


Link to post
Share on other sites

Take out the parentheses surrounding the temp.. I.E>(A:General eng1 oil temperature, celsius) 100 > if{ (>K:TOGGLE_ENGINE1_FAILURE) }Remeber once failed you must go to the menu to "repair" it.Regards,Roman[link:www.packers.com]GREEN BAY PACKERS][/i :-ukliam :-beerchug


20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Share this post


Link to post
Share on other sites
Guest

Well, make an engine failure warning light for tests and see what happens. I'm sure you'll be able to see instantly what is wrong then. If you don't succeed, I'll give you a more detailed description.Use (A:GENERAL ENG1 FAILED,bool) for the light, or some similar parameter.

Share this post


Link to post
Share on other sites

Good evening everybody and thanks for the advicesI did a lot and now it is possible to get failures, oilpressure, hydraulic, electric, air etc. en repair them in flight.Made some lights and now busy with fine tuning, the big problem!.Anyway, it works and it is kind of a sensation to get an unexpected engine failure 2 NM finals.Karl, as always, i do want to know more about your work (and, of course, that of others)!Reg.http://ftp.avsim.com/dcforum/User_files/3dbc3a9471a37f1c.jpg

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...