zippymccrackin Posted February 8, 2015 Share Posted February 8, 2015 I would like to know what the best method of keeping some settings when changing maps on LUA such as weapons grabbed and health, since World:Clear() seems to remove any script on an entity. I know I could do globals in App.lua but that seems like such horrible practice. Quote Link to comment Share on other sites More sharing options...
josk Posted February 8, 2015 Share Posted February 8, 2015 You could write your variables to a file and then read them back in. Quote Elite Cobra Squad Link to comment Share on other sites More sharing options...
Rick Posted February 8, 2015 Share Posted February 8, 2015 This might help https://www.youtube.com/watch?v=5WmwNyTlbZE Just make sure you aren't in sandbox mode or you'll get an error. 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.