Game Development Community

Capturing the server player and client players

by Katrina Rose · in Torque Game Engine · 11/11/2004 (8:17 am) · 3 replies

Hi,

We are currently making a single player game and I am using $myPlayer to capture the %player when it is spawned. I am racking my brain trying to figure out how to make this a coop game. I used $myPlayer everywhere and if I can I would like to change it to $myPlayer[$clientNumber]. I have no idea where or how to capture the %client that connects and make then unique. The server would always have to be kept up to date with how many clients are connected and which client is accesing each method. What would be the best way to go about this?

Thanks for your help in advance.

Marrion

#1
11/11/2004 (10:28 am)
Have you tried ServerConnection.getControlObject()?
#2
11/11/2004 (11:42 am)
Thanks Ben,

Everything seems to work not but I have one slight problem. Now None of the weapons will shoot. The mouse trigger event gets called, but the onFire Event for each weapon does not get called anymore. Any Ideas?

Thanks for your help Ben.

Marrion
#3
11/12/2004 (10:27 am)
On the server or the client?