geostar1024 Posted March 15, 2017 Share Posted March 15, 2017 I'm working on a small mod, and I was wondering how to make the game reload script files from disk without having to exit and re-enter the game. Link to comment Share on other sites More sharing options...
geostar1024 Posted March 16, 2017 Author Share Posted March 16, 2017 Well, to partially answer my own question, it seems that installing a system module re-runs the script associated with the module, so that functions as a reload method if your mod concerns system modules. Link to comment Share on other sites More sharing options...
w00zla Posted March 16, 2017 Share Posted March 16, 2017 you can also use the /run command to add and remove player/entity scripts while ingame! everytime you add a script, it will be reloaded from disk and executed, so you can even edit the files while the game is running =) /run Player():addScript("player/myscript.lua") /run Player():removeScript("player/myscript.lua") /run Entity():addScript("entity/myscript.lua") /run Entity():removeScript("entity/myscript.lua") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now