Game Development Community

mutiplayer problem

by qimieyan · in Torque 3D Professional · 12/29/2011 (11:06 pm) · 5 replies

now,I want to show Explosions to all player.

I use "commandtoClient" but it got a error and quit.
Anyone how can I show Explosions to all player? please help me out ! Thanks!


function ClientCmdHydrogenSystemExplode(%whichHydrogenSystem){
if( !isObject( %whichHydrogenSystem ) )
return;

%explode = new Explosion()
{
dataBlock = GrenadeLauncherExplosion;
position =%whichHydrogenSystem.getPosition();
};

}

#1
12/31/2011 (8:51 am)
@gimieyan, can you post the error?
#2
12/31/2011 (11:31 am)
How are you calling the ClientCmd? Where/how is the %whichHydrogenSystem parameter passed?
#3
12/31/2011 (6:39 pm)
Deninis, the error I can't explain it.
Michael , I call the cmd from server when the whichhydrogenSystem call onadd method.
I thought my way is faults.I just want to figure out how to show Explosions to all player! Make the explosions show to client!
#4
01/03/2012 (7:05 am)
There has been a long-standing problem in the engine where Explosions aren't correctly networked. I'm not sure if it still affects T3D, but have a look at this resource (or this) for a solution.

EDIT: Wait a sec, just realised I answered a different question. I should read more carefully!

Can you post the actual script which sends the clientcmd?
#5
01/07/2012 (10:53 pm)
Thank you Daniel ! Now it can work in my games!