Skip to content

Commands

Konijima edited this page Jul 11, 2022 · 1 revision

Communication between the client & server is done using commands.

Sending 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", {})

Receiving Commands

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.

Clone this wiki locally