Game Development Community

Exit to Main Menu

by August Jokela · in Torque Game Engine · 08/23/2005 (6:41 pm) · 1 replies

I have been modifiying the Tutorial.base game. I have it so my character takes damage. I want it so that when my character dies the game will go back to the main menu. I have been told you just call the disconnect function. How would you do this? Do you call it from the PlayerShape::OnDisabled() function?

#1
08/23/2005 (11:46 pm)
On disable sounds good, and take a look at the script common/kickban for an example of how to delete a player, .