SendChatMessageToAll
The same message in everyone’s chat - on a channel, in the chat of the players who see it.
The message is the one of SendChatMessage, with the same limits and the same reasons (bar "no such player"). On the
default channel the line goes to everyone connected; on a channel it goes to the players the
channel is visible to - an admin-only channel’s line to the admins, a party channel’s to everyone who is in a party.
Syntax
Section titled “Syntax”SendChatMessageToAll(message)| Parameter | Type | |
|---|---|---|
message |
string | table | a text, or a table { text | spans, channel, color, template, params } |
Returns
Section titled “Returns”true, or false, reason - the reason as a person reads it
Example
Section titled “Example”SendChatMessageToAll({ spans = { { text = "The gates close at dusk. ", color = COLOR_YELLOW }, { text = "Be inside the walls.", bold = true }, },})
SendChatMessageToAll({ text = "Round 4 begins.", channel = "staff" }) -- only the players who see the staff channelSee also
Section titled “See also”SendChatMessage · SendClientMessageToAll · RegisterChatChannel · the Chat and commands group of the index
