Says[1] the text supplied in string msg on channel supplied in integer channel to the object or avatar specified by target

Syntax

void llRegionSayTo( key target, integer channel, string msg );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

key target
avatar or prim UUID that is in the same region
integer channel
string msg

Caveats

Examples

default
{
    touch_start(integer num_detected)
    {
        key id = llDetectedKey(0);

        // send a message to the chat window of the avatar touching
        llRegionSayTo(id, 0, "You touched this!");

        // send a message to the attachments of the avatar touching
        // example channel: -12345
        llRegionSayTo(id, -12345, "Hello there attachments!");
    }
}

Notes

llRegionSayTo("55499a64-45c3-4b81-8880-8ffb5a7c251b", -5243212, "turn on");
Using negative channels for script communications remains a common practice because, prior to September 2016, the standard Second Life Viewer was unable to chat directly on those channels (/-xxxx message wouldn't chat message on channel -xxxx).

Therefore, llRegionSayTo() is unsuitable for (say) verbose script debugging, and even moderate use can break users' content completely unrelated to the script for an indeterminate (and potentially very long) period of time. Consider using llOwnerSay() for debugging instead or, if this is not appropriate, try llRegionSayTo(avatar, non-zero-channel, message) and have an attachment relay the message using llOwnerSay().

See also

Events

listenReceives chat

Functions

llListenAsk for listen events
llInstantMessageSends chat to a specific avatar, inside or outside the current region.
llOwnerSaySends chat to the owner only to avoid spamming the PUBLIC_CHANNEL
llRegionSaySends chat region wide
llSaySends chat limited to 20 meters
llShoutSends chat limited to 100 meters
llWhisperSends chat limited to 10 meters

Articles

Deep notes

Issues

History

Date of Release 26/04/2011

Footnotes

  1. In this context, saying or speaking means that a message is being sent to the recipient (object or avatar); it's not about audio/voice chat!
  2. I.e., received