Quit()
by Scott Doerrfeld · in Torque Game Engine · 08/15/2007 (8:45 am) · 2 replies
Does the 'quit()' console command cause any script functions to get called? I assumed it called 'destroyServer()' but I put an echo statement in there and it didn't print to screen. Basically I am wanting to do something in script TGE shuts down and right now 'onExit()' is the only place I can see to do this.
About the author
#2
08/15/2007 (8:52 am)
OnExit() is your script function that gets called on quit() - so that's a good place to put what you want.
Torque Owner Scott Doerrfeld