-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by Ygor Montenegro Araújo
-
-
On 4/8/2022 at 6:03 AM, John Dowson said:
Then that is the way the lvar works. What switch/function for what aircraft are you trying to assign? Have you checked the MF HubHop resource to see if there is a preset available?
I'm using the Feelthere's E190 for P3D V5. Trying to switch the position of BATT 2 from OFF to AUTO but it seems that something is forcing the switch back to OFF. Never used MF HubHop.
-
Actually i can change it, but the LVar gets reset very quickly:
#!/usr/bin/env lua ipc.writeLvar("L:EmbBatt2", '1') value = ipc.readLvar("L:EmbBatt2") ipc.display(value) ipc.sleep(5000)
I ran this code using a keypress, and instead of remaining on position 1, it rollsback to position 0.
Gif may have cutted some frames..
Can't change LVar value
in FSUIPC Support Pete Dowson Modules
Posted
I've found a var named "EmbBatt2" with "Click" in the end. If I set to "-1" it reduces the position, and if I set it to "1" it increases the position.
I will have to set a routine via lua in order to the LVar correspond to the switch position, not the ideal, but is a beggining.