Says the text supplied in string msg on channel supplied in integer channel. The message can be heard 20m away, usually (see caveats)

Syntax

void llSay( integer channel, string msg );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

integer channel
output chat channel, any integer value
string msg
message to be transmitted

Constants

Channel ConstantDescription
DEBUG_CHANNEL0x7FFFFFFFChat channel reserved for script debugging and error messages, broadcasts to all nearby users.
PUBLIC_CHANNEL0x0Chat channel that broadcasts to all nearby users. This channel is sometimes referred to as: open chat, local chat and public chat.

Caveats

Examples

default
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }
}

To avoid making your object spam its neighborhood, use llInstantMessage, llOwnerSay or llRegionSayTo.

Notes

    llSay(-5243212,"turn on");
From at least September 2016 (see Release Notes/Second Life Release/4.0.9.320038), viewers have been able to chat on negative channels, although chat from viewers is limited to 254 characters. (Chat from objects caps at 1024 bytes, whether the channel is negative or not). Negative channels were popular for script communications because the standard SL client was unable to chat directly on those channels (/-xxxx message would not chat message on channel -xxxx). The only way for a viewer to generate chat on negative channels prior to llTextBox was to use llDialog which was limited to 24 bytes.

See also

Events

Functions

Articles

Footnotes

  1. Channel zero is also known as: PUBLIC_CHANNEL, open chat, local chat and public chat