Sign in to follow this  
Guest fbnweoghnwd

Multiple Click Events

Recommended Posts

I'm trying to make a master shutdown switch for the FSX helicopter I'm building. When you first start a flight - and everything is running by default - you can just click the switch to shut everything down properly.I started out by taking an existing 2-D battery toggle switch. Then I made the mods shown below. At this point, all I've done is replace the battery toggle click event with nav, panel, and landing light toggles. (I haven't removed all references to the battery yet; this is still just kind of a feasibility study.) The idea is to eventually have a switch that toggles everything that is, by default, running when you start a flight. When I click the switch now, it only triggers the landing light toggle, not the nav or panel lights. So, apparently something's not kosher with my syntax. Any suggestions?-Mick<?xml version="1.0" encoding="utf-8"?>(A:Electrical master battery,bool)

Share this post


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

Hi,I was just going to bed...:-) works with only one event per , the last one ; which in your case is LANDING_LIGHTS_TOGGLE, that's the reason for the previous events not being recognized.To solution this, use directly (>K:TOGGLE_NAV_LIGHTS) (>K:PANEL_LIGHTS_TOGGLE) (>K:LANDING_LIGHTS_TOGGLE) Tom

Share this post


Link to post
Share on other sites

Glad you didn't go to bed, Tom...that did the trick!Much thanks.

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