Echo on client
by Howard Dortch · in Torque Game Engine · 07/05/2004 (5:56 am) · 3 replies
I put some echo routines to help me debug a bit. On the Host computer the console.log file shows I call the function. On the remote computer that Joined the mission the exact same script gets called but the echo does not show up in that computers console.log file. Is that normal operation or is there a local echo that would force the text on the remote client console.log file?
#2
by creating a passthrough function on the client side.
ie
function ClientCmdechoFromServer(%whatever)
{
echo(%whatever);
}
then on the server call
commandtoclient( %ho,'echoFromServer',"Hello...");
07/08/2004 (12:57 pm)
Hey howard I needed to echo stuff on the client as well so i did itby creating a passthrough function on the client side.
ie
function ClientCmdechoFromServer(%whatever)
{
echo(%whatever);
}
then on the server call
commandtoclient( %ho,'echoFromServer',"Hello...");
#3
07/08/2004 (2:00 pm)
Kevin great idea! I just discovered the joys of sending commands to the client, I'll add that one, thanks...
Associate Kyle Carter
echo()'s only show up on the computer where the code is executing. It's possibly you're looking at a server side script, in which case it would only ever be run on the server.