Unofficial LSL Reference

[[functions:llsay]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

This is an old revision of the document!


Function: llSay

type llSay(integer channel, string message)

Parameters

channel

Determines the channel that message will be sent on. Channel can be any integer, positive or negative. Channel 0 is open chat (also known as PUBLIC CHANNEL) Channel DEBUG_CHANNEL will send the message to the Script Warning/Error window. Messages sent on channel 0 or the DEBUG_CHANNEL, are throttled to a rate of <200/10sec, per region, per owner/user. Negative channels are typically used for inter-object communication.

message

Contains the text to be said

Notes

  • Text said via llSay can be heard up to 20 metres away from the PRIM the script is in.
  • message can be a maximum of 1024 bytes. This can convey 1024 ASCII characters, or 512 UTF-8 characters such as á.

Short examples

llSay(0, "Hello friends"); // Sends the text "Hello friends" on channel zero. It will appear in the chat window of any avatar within 20 meters.

Complete examples

llSay-example.lsl
default
{
    touch_start(integer count)
    {
        // Send a message on a specific negative channel
        // The message will only be received by scripted objects that are listening on that channel
        llSay(-123456, "I was touched by " + llDetectedName(0) );
    }
}

See also