I have written a lua script which should switch on/off the headphones automatically when the avionics master switch is turned on/off.
The script catches the event of the avionics master offset and then exists of the 3 commands provided by A2A variable list:
Code: Select all
function Headphones(control, on_off)
ipc.writeLvar("L:Headphones", on_off)
ipc.writeLvar("L:SystemCondSelectFSX", 57)
ipc.writeLvar("L:SystemCondValueFSX", on_off)
end
Interestingly, also the "map to joystick button" feature does not work either...If I press the assigned Joystick button - same as above: cables are visible for a second, then they disappear.
any ideas to overcome this? I am running P3D version 3.4 (latest built).
Thanks, Thomas