Ok, had some time to play around:
I added
[LvarOffsets.Spit]
1=L:AIRFRAME_DOOR=F0x66FC
to the fsuipc.ini and assigned the Offset Float32 Set/1000 to a button with Offset x66FC and Parameter 100.
- The Offset is changed to 0.1 when i press the button but the door is not unlocked.
- Also tried Parameter 1000, so the Offset is changed to 1, but also no response.
Than i had the Offset value displayed (in the FS Window) to see if it's working at all.
- When i unlock the door by clicking on the mousespot for it, the Offset value is also changed to 0.1 (so it seems to be correctly connected to the AIRFRAME_DOOR LVAR)
- When i assign a button directly to the LVAR L:AIRFRAME_DOOR=Set, with Parameter 0 or 1, the Offset is changed accordingly, but the door is also not responding.
- When i assign L:AIRFRAME_DOOR=Toggle, the door is opened and closed (and the Offset changed to 0 and 1) when i press the button.
- When i set the LVAR AIRFRAME_DOOR through the FSUIPC UI /addons/WASM/Set Lvar, it works (also with 0.1) and the Offset is also responding accordingly.
-Changing the AIRFRAME_DOOR LVAR by Mouse click, Set LVAR (FSUIPC UI) or the L:AIRFRAME_DOOR=Toggle function, works.
-Changing it through the Offset or the AIRFRAME_DOOR=Set (neither 0, 1 or 0.1) function does not work.
-Changing the Offset, does not change the AIRFRAME_DOOR value, changing the AIRFRAME_DOOR does change the Offset.
Am i doing something wrong here? Otherwise i'll try the 2. Option you suggested. (Will have to dig into the LUA Programming a bit 🙂 ).
Thank you for your assistance.
Kind Regards,
Andre