Hello, I am trying to write:
fs2020_variable_write("NAV SOUND:1", "bool", false)
but there doesn't seem to be any effect (with true or false). I was able to use spad.next and manually set NAV SOUND:1 and it had the desired effect in the sim so I know it's working. I can read that variable from air manager, just not set it. Any ideas?
What I am trying to do is program a button to listen to the VOR ident.
fs2020_variable_write Question nav sound:1
Re: fs2020_variable_write Question nav sound:1
I did discover that I can use the event RADIO_VOR1_IDENT_TOGGLE instead.
However, I am curious is there a reason I cannot directly set the simconnect variable directly from within AM?
However, I am curious is there a reason I cannot directly set the simconnect variable directly from within AM?
Re: fs2020_variable_write Question nav sound:1
Because the MSFS SDK has that variable documented as non writeable.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
- Crunchmeister
- Posts: 222
- Joined: Tue Aug 10, 2021 2:06 pm
Re: fs2020_variable_write Question nav sound:1
When it comes to defaults, a large number of variables are read only and you need to use events to fire them. There are some exceptions, but the first assumption should always bee that you use and event to change a value, and a variable to read its value. The exception is custom lvars used in 3rd party planes which can both be read and written to.
You can get a list of all default vars and events in the SDK documentation: https://docs.flightsimulator.com/html/I ... uction.htm
You can get a list of all default vars and events in the SDK documentation: https://docs.flightsimulator.com/html/I ... uction.htm
- Ryzen 5950x, 64GB 3600MHz RAM, RTX3070Ti
Simstrumentation Instrument dev
Free Air Manager instruments for MSFS available at http://www.simstrumentation.com
Simstrumentation Instrument dev
Free Air Manager instruments for MSFS available at http://www.simstrumentation.com