Game Development Community

Completely restarting torque through script

by Mike Treanor · in Torque Game Engine · 06/04/2008 (1:51 pm) · 3 replies

Hello,

Can someone tell me if there is a way to completely restart torque through script. In other words, I want to reset all variables, show the splash screen and such as if the game had been exited and then restart. It would be very difficult for me to do find all the variables and reset them, so something like this would really help with the exhibition of my game this week.

Thanks,
Mike

#1
06/04/2008 (2:12 pm)
Kind of depends on whether you just want the mission itself to restart, then redisplay the splash screen/menu until you enter another/the same mission, or you want to actually close down the process for Torque and re-open it. I believe the former can be done by just issuing the "disconnect()" call in script.
#2
06/04/2008 (2:22 pm)
That did it! I had to change disconnect() a little, but that is where it was. I am so happy to have an easy question with an easy answer.
#3
06/04/2008 (2:38 pm)
@Mike, great! Glad to hear that worked out for you.