Jump to content
Sign in to follow this  
Guest Skymed

Making a switch with dual functions

Recommended Posts

Guest Skymed

GuysI would like a switch that performs one action when flicked on and another action when flicked off.I need to increase throttle to full when in the on position, and then decrease throttle to off when the switch is turned off. So far all I have is:(L:Prop,bool) 0 (>K:THROTTLE1_FULL) (L:Prop,bool) ! (>L:Prop,bool)Is there a way to make this switch do what I need??As always, help most appreciated.Steve

Share this post


Link to post
Share on other sites

Hi, Not tested, just an idea:(L:Prop,enum) 0 == if{ (>K:THROTTLE_CUT) }(L:Prop,enum) 1 == if{ (>K:THROTTLE1_FULL) } (L:Prop,enum) ! (>L:Prop,enum)Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites

Hi,Or may be just this in the Click Event?(L:Prop,enum)(L:Prop,enum) 0 == if{ 1 (>L:Prop,enum) (>K:THROTTLE1_FULL) } els{ 0 (>L:Prop,enum) (>K:THROTTLE_CUT) }Jan"Procul Negotiis"

Share this post


Link to post
Share on other sites
Guest Skymed

JanWorks like a charmThanks a million !!!!Steve

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