I want to initialize the NAV and Panel lights to "off" when I load a Cessna in FSX. Both lights are controlled by the same switch. I also need to cut the throttle.
In the FSX SDK, I found an EventID to turn off the panel lights. But I could only find a "toggle" command for the Nav lights. Sooo, I thought I could simply test to see if the Nav lights were on, and if they were then toggle them.
Well, the throttle cuts, and the panel lights turn off. But not the Nav lights.
Evidently I've not coded this right, as it doesn't work. I'm out of ideas, can someone please help?
Here's my initialization code:
Thank you for considering my problem. BobCode:<Update> (L:AircraftInitialize,bool) 0 == if{ (>K:PANEL_Lights_Off) (A:LIGHT_NAV_On,bool) 1 == if{ (>K:TOGGLE_NAV_LIGHTS) } (>K:THROTTLE_CUT) 1 (>L:AircraftInitialize,bool) } </Update>


Reply With Quote



Bookmarks