I want to store a value in my Lua-based MFD when the user exits Orbiter and restore it when the next Orbiter session is started.
But I don't understand how the MFD callback functions
Do I have to define both functions in my MFD's .cfg file?
For writestatus(scn) I assume that I simply would define the function and assign the required persistent variables like this:
How would I retrieve the saved variable then in readstatus(scn)?
But I don't understand how the MFD callback functions
- writestatus(scn)
- readstatus(scn)
Do I have to define both functions in my MFD's .cfg file?
For writestatus(scn) I assume that I simply would define the function and assign the required persistent variables like this:
Code:
function writestatus(scn)
ostime = os.time()
end
How would I retrieve the saved variable then in readstatus(scn)?