I am attempting to programme Linda to individually switch the Panel Instrument Lights on individually and seem to have hit a brick wall, I am a relative newbie to lua programming etc.
The Spitfire Lvar List it says
Flood lights (A:LIGHT PANEL,bool)
(>K:PANEL_LIGHTS_TOGGLE)
I cannot figure out what is individually different controlling the left and right instrument panel light switches even using Linda tracer and scan too.
I figure the Event_ID Panel_Lights_toggle (65750) is what is being referred to above, what is (A:LIGHT PANEL, Bool) pardon my lack of understanding.
Using the Linda Tracer and switching the cockpit switches with a mouse I receive the Lvar sequence below, but from within Linda, none of the Lvar's actually toggles the switch to individually turn on the Left Lamp / Right Lamp.
Can some please point me in the right direction to programme a physical toggle switch Lua function ()
Code: Select all
Left On
[L] LVar: LightPanelSwitchSave = 1
[L] LVar: LightPanelPast = 1
[L] LVar: Lamp1State = 1
[L] LVar: LightsElectricalDraw = 4.3
[L] LVar: Paused = 1
[L] LVar: SoundStats_CurrentCount = 1
[L] LVar: Paused = 0
[L] LVar: SoundStats_CurrentCount = 0
Left Off
[L] LVar: LightPanelPast = 0
[L] LVar: CockpitSwitchSnd = 9
[L] LVar: Lamp1State = 0
[L] LVar: LightsElectricalDraw = 1.8
[L] LVar: LightPanelSwitchSave = 0
[L] LVar: SoundStats_CurrentCount = 1
[L] LVar: CockpitSwitchSnd = 0
[L] LVar: SoundStats_CurrentCount = 0
Right On
[L] LVar: LightPanelPast = 1
[L] LVar: CockpitSwitchSnd = 10
[L] LVar: Lamp2State = 1
[L] LVar: LightsElectricalDraw = 4.3
[L] LVar: LightPanelSwitchSave = 1
[L] LVar: SoundStats_CurrentCount = 1
[L] LVar: CockpitSwitchSnd = 0
[L] LVar: SoundStats_CurrentCount = 0
Right Off
[L] LVar: LightPanelSwitchSave = 0
[L] LVar: SoundStats_CurrentCount = 1
[L] LVar: LightPanelPast = 0
[L] LVar: Lamp2State = 0
[L] LVar: LightsElectricalDraw = 1.8
[L] LVar: SoundStats_CurrentCount = 0