LUA scripting expert wanted for HELIOS prblem
-
OK added channel control with increase only and it works perfect
YIPPEE
Now only backup TACAN to sort out using similar method then I will release.
Thank you heaps Blu3wolf
-
OK Blu3wolf I have added four more virtual controls for back up Tacan functions with slightly modified scripts to account for different number of steps and starting positions and they work great.
There is one tiny problem remaining, if the RESET function is used it resets the virtual controls but not "rotary globals ".
This is fine if the virtual controls have not been moved but no good if they have, because they start from last “global” position.
If not curable I can suggest not using reset and only use restart from scratch but it would be nice if I can make the reset button also send scripts that put the "rotary global " back to start position on each virtual control.
I tried :-
rotary = rotary or 1
if true
rotary = 1
end
return rotarybut no success, I think I need your brilliant expertise again please…
weepop
-
so, the reason the increment and decrement scripts didnt work is the same reason - the rotary variable isnt shared between the scripts. If I knew how to fix this reset button, Id know how to make the increment and decrement talk to each other. Sorry I cant help with that.