LSL feature request. The described function does not exist. This article is a feature request.

Says the string msg on channel number channel that can be heard anywhere in the parcel by an agent (when on the PUBLIC_CHANNEL) or by a script listening on channel.

Syntax

void llParcelSay( 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

Regardless of where the prim is, the message will not travel over parcel borders.

See: SVC-1224

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

<lsl>default {


   state_entry()
   {
       llParcelSay(0, "Abandon ship! This is not a drill!" );
   }

}</lsl>

Notes

If one object 'says' something to another object (e.g., a button that, when touched, turns on a lamp), it is a good idea to use a very negative channel, e.g., <lsl> llParcelSay(-654321, "light on");</lsl> Negative channels are popular for script communications because the client is unable to chat directly on those channels ("/-xxxx message" won't chat "message" on channel "-xxxx", it will chat "/-xxxx message" on channel zero).

If DEBUG_CHANNEL is used as channel, the script will say msg to the Script Warning/Error window.

See also

Events

Functions

Footnotes

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