Channel
Constants in the Channel enum.
integer COMBAT_CHANNEL = 2147483646; // A region-wide channel reserved for combat-related log events.integer DEBUG_CHANNEL = 2147483647; // A chat channel reserved for script debugging and error messages.integer PUBLIC_CHANNEL = 0; // Integer constant representing the open local chat channel.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
COMBAT_CHANNEL | integer | 2147483646 | A region-wide channel reserved for combat-related log events. Passing this to llRegionSay adds the message to the combat log, and scripts listening on this channel can monitor the combat log. |
DEBUG_CHANNEL | integer | 2147483647 | A chat channel reserved for script debugging and error messages. Passing this to llSay, llWhisper, or llShout prints text to the Script Warning/Error Window and broadcasts it to nearby avatars' script consoles. |
PUBLIC_CHANNEL | integer | 0 | Integer constant representing the open local chat channel. Passing this to chat functions (llSay, llWhisper, llShout) prints text to the publicly heard chat seen by nearby users and objects. |
Used by
llListenfunctionCreates a listener on channel from name and id for msg. Returns an integer listener handle used to control or remove the listener. Empty strings or NULL_KEY filters do not filter on those parameters.llSayfunctionBroadcasts the message msg to all scripts or agents listening on channel within llGetEnv("chat_range"), which is 20m on most regions. Agents listen on PUBLIC_CHANNEL (0) and DEBUG_CHANNEL (2147483647). All other channels are for script-to-script communication.llShoutfunctionBroadcasts the message msg to all scripts or agents listening on channel within llGetEnv("shout_range"), which is 100m on most regions. Agents listen on PUBLIC_CHANNEL (0) and DEBUG_CHANNEL (2147483647). All other channels are for script-to-script communication.llTextBoxfunctionOpens an input text box dialog displaying msg to the agent. Submitting text chats the input string on channel as if said by the agent. The chat originates at the object's position, but uses the agent's name and UUID, so it can be heard as long as the agent is still in the region.llWhisperfunctionBroadcasts the message msg to all scripts or agents listening on channel within llGetEnv("whisper_range"), which is 10m on most regions. Agents listen on PUBLIC_CHANNEL (0) and DEBUG_CHANNEL (2147483647). All other channels are for script-to-script communication.