cellular55 Posted January 13, 2011 Report Share Posted January 13, 2011 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 Quote Link to comment Share on other sites More sharing options...
Pete Dowson Posted January 13, 2011 Report Share Posted January 13, 2011 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 Quote Link to comment Share on other sites More sharing options...
cellular55 Posted January 14, 2011 Author Report Share Posted January 14, 2011 Hi Pete, thanks a lot.. your support is amazing as always Joe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.