Jump to content

[Question] Reload Scripts in-game?


geostar1024

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...