Mechanical Push Button in Xplane Cockpit mapping
Posted: 25 Dec 2018, 00:15
Having trouble with my FF757.. Because the datarefs are a little different from that of the regular Xplane ones that "toggle" a switch.
757 dataref for a Logo button anim/52/buttom
When the logo button is not depressed and the light is off the dataref is
"elseif (button == string.byte('5')) then lmc_set_xpl_variable('anim/52/button', 0) "
When the logo push button is depressed, the logo lights turn on and the dataref is
elseif (button == string.byte('5')) then lmc_set_xpl_variable('anim/52/button', 1)
How could I program this, so that I can hit string.byte('5')) over again and it will turn the logo lights off, or change the dataref from anim/52/button', 1 back to anim/52/button', 0.
Thanks alot for the help.
Merry christmas!
Rich
757 dataref for a Logo button anim/52/buttom
When the logo button is not depressed and the light is off the dataref is
"elseif (button == string.byte('5')) then lmc_set_xpl_variable('anim/52/button', 0) "
When the logo push button is depressed, the logo lights turn on and the dataref is
elseif (button == string.byte('5')) then lmc_set_xpl_variable('anim/52/button', 1)
How could I program this, so that I can hit string.byte('5')) over again and it will turn the logo lights off, or change the dataref from anim/52/button', 1 back to anim/52/button', 0.
Thanks alot for the help.
Merry christmas!
Rich