Blockland Forums > Modification Help

Calling a function for every online player.

Pages: (1/1)

Jasa1:

How would I go about calling a function for every client on the server?

Chrono:

In what way?

A commandToClient?
A gameConnection.function?

Jasa1:

GameConnection::Function

Chrono:


--- Code: ---for(%x=0;%x<ClientGroup.getCount();%x++)
{
%cl = ClientGroup.getObject(%x);
//Do stuff to %cl, like:
//%cl.DoSomething();
}

--- End code ---


Pages: (1/1)

Go to full version