Chat
Chat is a static class used for various actions regarding the chat.
Summary
Methods
BroadcastMessage:voidUnicastMessage:void
Methods
BroadcastMessage
Chat:BroadcastMessage(message: string)
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
message | string | - |
Sends a chat message to all users.
Example
Chat:BroadcastMessage("Hello, world!")
UnicastMessage
Chat:UnicastMessage(message: string, player: Player)
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
message | string | - | |
player | Player | - |
Sends a chat message to a specific user.
Example
Chat:UnicastMessage("Hello, world!", game["Players"]["willemsteller"])