Client problem
by CIMO · in Torque Game Engine · 09/30/2006 (12:09 pm) · 1 replies
I have this code
A type for see in client and in server?
THANKS
if (%teamscored $="RedScores")
{
$RedScore++;
if($RedScore >= $MaxScore)
{
MessageAll("","Team ROSSO vince!!.");
ResetBots();
ResetFlags();
ResetScores();
cycleGame();
Canvas.setContent(endGameRbRossoGui);
}
else
{
MessageAll("","ROSSO: " @ $RedScore @" BLU: " @$BlueScore);
}
}In this mode the "endGameRbRossoGui" see only on server ....A type for see in client and in server?
THANKS
Associate Orion Elenzil
Real Life Plus
instead, send a commandToClient to each client and have the clientCmd set the canvas content.
eg
in your code above do something like this:
and then somewhere in the client put this:
function clientCmdDoEndGameGui() { Canvas.setContent(endGameRbRossoGui); }