= $MaxScore) { MessageAll("","Team ROSSO vin"> Captur the flag END GAME GUI | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

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:
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?

#1
09/25/2006 (9:25 am)
A suggestion is to spellcheck your syntax before posting it here.
#2
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