Captur the flag END GAME GUI
by CIMO · in Torque Game Engine · 09/25/2006 (9:09 am) · 3 replies
I have create a capture the flag Gui for my CF Game
this is a section on CF game.cs:
and report a win team...
cycleGame(); called this in script...And i suppos a called a Gui from here...
But not function..
I use this:
this is a section on CF game.cs:
function TheFlagWasCapped(%teamscored)
{
if (%teamscored $="RedScores")
{
$RedScore++;
if($RedScore >= $MaxScore)
{
MessageAll("","Team ROSSO vince!!.");
ResetBots();
ResetFlags();
ResetScores();
cycleGame();
}
else
{
MessageAll("","ROSSO: " @ $RedScore @" BLU: " @$BlueScore);
}
}
if (%teamscored $="BlueScores")
{
$BlueScore++;
if($BLueScore >= $MaxScore)
{
MessageAll("","Team BLU vince!!.");
ResetBots();
ResetFlags();
ResetScores();
cycleGame();
}
else
{
MessageAll("","ROSSO: " @ $RedScore @" BLU: " @$BlueScore);
}
}
}I woul called a my "CaptureFalgGui" when a team WIN....and report a win team...
cycleGame(); called this in script...And i suppos a called a Gui from here...
But not function..
I use this:
Canvas.setContent(EndGameCaptureFalgGui);Any idea?
#2
Canvas.setContent(endGameRbRossoGui);
But function only whit a team win...
after team not visualize a gui and continue the game
A metod for visualizze a GUI on ALL team when a one team win?
THANKS
09/25/2006 (9:40 am)
I use this:Canvas.setContent(endGameRbRossoGui);
But function only whit a team win...
after team not visualize a gui and continue the game
A metod for visualizze a GUI on ALL team when a one team win?
THANKS
#3
09/25/2006 (11:53 am)
I resolve....thanks .. very thanks......ba
Torque Owner Stefan Lundmark