Game Development Community

Gui button that restarts current mission

by Jesse P · in Torque Game Engine · 08/08/2008 (11:36 am) · 1 replies

Hey I'd like to add a gui button that restarts the current mission, for example the player could hit escape and a menu would pop up with an option to "restart mission", I have all the menu stuff down but want to know if there is already a command that I could put in for the button that would restart the mission. Also if not how could I go about doing that. Thanks

#1
08/08/2008 (11:41 am)
Got it! This is the command I gave it:

loadMission( $Server::MissionFile );

Cool! Works perfectly.