Jump to content
The simFlight Network Forums

Storing LUA vars


Recommended Posts

Hi Pete,

is there a way to store in memory a variable declared in a LUA script? Are there specific offsets that could be used for that?

Could be useful if you need to run another script using the variable(s) set by another LUA or to recall the same script, originating the variable(s), to eventually do different actions depending by that value.

Thanks in advance for your help

Joe

Link to comment
Share on other sites

is there a way to store in memory a variable declared in a LUA script? Are there specific offsets that could be used for that?

Could be useful if you need to run another script using the variable(s) set by another LUA or to recall the same script, originating the variable(s), to eventually do different actions depending by that value.

That is exactly the purpose of the ipc.set and ipc.get functions. Such globals persist for the whole FS session.

Regards

Pete

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.