-
Notifications
You must be signed in to change notification settings - Fork 3
Commands
Konijima edited this page Jul 11, 2022
·
1 revision
Communication between the client & server is done using commands.
Send a command from a client to the server
Client.SendCommand("MyCommand", {})Send a command from the server to a client
Server.SendCommand("MyCommand", {}, targetPlayer)Send a command from the server to all clients
Server.SendCommand("MyCommand", {})To make it easier to reload a specific command, each command handler is defined into its own file.
Check template commands Ping & Pong to see how it works.