Network.sendToClient

Sends a network event from the server to a client. This will run the callback method on the client with optional arguments.

Kind: Function

Environments: Game

Game

network:sendToClient( player, callbackMethod, args )

Open the full Game reference

Availability: Server only

Parameters:

Name Type Description
network Network The network.
player Player The client player (or the host).
callbackMethod string The client function name.
args (optional) any Optional arguments to be sent to the client.