How to restart a level? (SOLVED)


How do I reload a collection that has already been loaded


You unload it and then load it again.


The method I use is to send a restart message to my controller script that unloads the proxy and sets “self.restart = true”

Then check the boolean in the “proxy_unloaded” message to reload it from there:

--check if proxy should reload itself
if message_id == hash("proxy_unloaded") then
  if self.restart == true and sender.fragment == hash("myproxy") then"/proxies#myproxy", "load")
    self.restart = false


Thanks guys