Game Development Community

client and player documentation?

by Neil Marshall · in Torque Game Engine · 06/08/2003 (10:23 am) · 3 replies

I'm looking for documentation which describes how %client and %player work and interact. I just can't seem to find anything on it.

I know the player contains the model and the client is the actual connected computer but what else do they do?

Also, I've found that I can get the %player from the %client as well as the %client from the %player. Does it matter which one I hold on to in memory? I think that I should always hold on to the %client if anything, but I'm not sure.

Also does anyone else have a problem with the forum search when searching for "%client"? It's just returning a list of the forums.

#1
06/08/2003 (11:41 am)
%client and %player% arent always the exact same thing, they're just names for script variables. They can contain whatever you assign to the, but they are usually passed to a funciton, and represent the ID number of the client or player.

You can use them to call functions like:
%client.setControlObject();

or you can access variables from their datablocks in the same way.
#2
06/08/2003 (11:50 am)
how do I get a list of the functions/methods available? Is there any easy way to dump them to the console?
#3
06/08/2003 (12:26 pm)
%client.dump();
%player.dump();