Seb17 Posted May 31, 2021 Report Posted May 31, 2021 Hello. I am using registered FSCUIP 7 with MSFS. I have a problem that I cannot resolve with LUA: This works well : CSTR on ! I have cstr.lua ipc.writeLvar("H:A320_Neo_MFD_BTN_CSTR_1", 1) And CSTR does not turn on... Any idea please ? Thx
Seb17 Posted May 31, 2021 Author Report Posted May 31, 2021 Auto answer : ipc.activateHvar("H:A320_Neo_MFD_BTN_CSTR_1") works fine
John Dowson Posted May 31, 2021 Report Posted May 31, 2021 2 hours ago, Seb17 said: This works well : CSTR on ! That is using a MobiFlight event. 2 hours ago, Seb17 said: I have cstr.lua ipc.writeLvar("H:A320_Neo_MFD_BTN_CSTR_1", 1) But here you are trying to write a Hvar as an lvar... 1 minute ago, Seb17 said: Auto answer : ipc.activateHvar("H:A320_Neo_MFD_BTN_CSTR_1") works fine Yes, you need to use ipc.activateHvar for hvars. Not that hvars to not have an associated value - you just trigger or activate them.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now