Game Development Community

Client side setWhiteOut? and client Id numbers?

by DALO · in Torque Game Engine · 06/02/2008 (10:26 am) · 1 replies

Hey All,
Just wondering if this is possible. When you call this: commandToClient(%client, 'someFunction');
It goes to this function clientCmdsomeFunction for that particular client. How can I get that client's Id number without passing it to the function? Is this possible?
If the above is possible, or if I pass in the client Id and even the player Id, will the setWhiteOut function work or is this a server only function? I seem to get this alot: "Unable to find object: ' 'attempting to call......"
Thx

#1
06/02/2008 (11:27 am)
You can get your control object on the client side, no need to pass it.

%obj = ServerConnection.getControlObject();

I haven't used white-out before though, so I would make sure it is something that is intended to be set on the client side. It could possibly be networked in which case you could just set it on the server.