Reload Script File on re-connecting to world

Posted by Seriley on Fri 26 Nov 2010 08:47 AM — 3 posts, 16,011 views.

#0
The script file is loaded automatically when I open the world the first time. But not on a re-connect.

Is there a way to reload the script file on each re-connect besides using the Shift-Ctrl-R keyboard entry or clicking on the button provided?

Thanks
Australia Forum Administrator #1
In the scripts configuration window are some boxes. One is: World Events -> Connect.

Put in there the name of a function you want to have run when the world connects.

I presume you don't really need to reload the script, but rather that you need to re-initialize variables. Well, do that in the connect function.
#2
Thanks, Nick.

I hadn't thought of having all variable initialization in a function instead of just reloading the script file.
The northeastern lights you are seeing in the skies is me blushing.