Most of the commonly reported issues and questions are answered in the Frequently Asked Questions (FAQ) option under the Support menu of this website.
*** PLEASE NOTE ***
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
1st December: A new version of the GoFlight Interface Tool for MSFS is now available.
12th November: A new version of the GoFlight Interface Tool for X-Plane is now available.
6th June: A new version of Virtual Flight Sim Hardware is now available (huge update)
21st November: A new version of the GoFlight Interface Tool for FSX/FSXSE/P3D is now available.
How to create a IF ELSE
I created a bespoke command that sets interior cockpit panel lights to a predefined value or to 0.
I want to turn on/off the panel lights with 1 push button.
Panel brightness increases or decreases with a 0.05 value.
As I'm never sure what panel brightness is set (I can always change it in the virtual cockpit) I want to turn it off the brightness is different from 0.
When brightness is 0 I set my predefined values.
But the following will not work to turn on the lights, because when I'm at task 5, panel_brightness[0] will be different from 0 due to task 1 to 4. So I need a a else, or I should be able to store panel_brightness[0] first in a var that I can reuse.
How can I solve this without using a switch and have to create a case for every of the 21 values.
I want to turn on/off the panel lights with 1 push button.
Panel brightness increases or decreases with a 0.05 value.
As I'm never sure what panel brightness is set (I can always change it in the virtual cockpit) I want to turn it off the brightness is different from 0.
When brightness is 0 I set my predefined values.
But the following will not work to turn on the lights, because when I'm at task 5, panel_brightness[0] will be different from 0 due to task 1 to 4. So I need a a else, or I should be able to store panel_brightness[0] first in a var that I can reuse.
How can I solve this without using a switch and have to create a case for every of the 21 values.
Answers
Best wishes
Steve