Author Topic: CommandToServer and CommandToClient  (Read 505 times)

serverCommandClearBricks();
commandToServer("ClearBricks");
Are these the same thing?

And what exactly is CommandToClient?

To me it seems these are both way that the server can call client functions and the client can call server function.
Is there any other way besides this that the client and server and vise versa can talk?

To me it seems these are both way that the server can call client functions and the client can call server function.
Yes.

A serverCmd is declared serverCmd<name>
The client can then call it using either commandtoserver('<name>'); or /<name> in chat.

A clientCmd is declared clientCmd<name>
The server can call it using commandtoclient(%client,'<name>');