LlRegionSayTo
{{LSL_Function |inject-2= |func_id=363 |func_sleep=0.0 |func_energy=10.0 |func=llRegionSayTo |sort=RegionSayTo |p1_type=key|p1_name=target |p2_type=integer|p2_name=channel |p3_type=string|p3_name=msg |func_desc=Says the text supplied in string msg on channel supplied in integer channel to the object or avatar specified by target |return_text |spec |caveats=
- Text is spoken directly to the object or avatar within the same region as the script.
- Scripts in tasks other than target can not listen and receive these text messages, with an exception for attachments described below.
- Text can be a maximum of 1023 bytes.
- A prim cannot hear itself, to prevent problems with recursion.
- Sending text on DEBUG_CHANNEL is not supported
- Text sent to an avatar's ID on channel zero will be sent to the viewer.
- Text sent to an avatar's ID on non-zero channels can be heard by any attachment on the avatar
|examples=<lsl>default {
touch_start(integer i) { llRegionSayTo(llDetectedKey(0), 0, "You touched this!"); }
}</lsl>
|helpers |also_events= |- ||| style="width:9em;" | |-style="vertical-align:top;" | style="color:gray;" |• | listen | style="color:gray;" | – | Receives chat | |also_functions= |- ||| style="width:9em;" | |-style="vertical-align:top;" | style="color:gray;" |• | llListen | style="color:gray;" | – | Ask for listen events | |-style="vertical-align:top;" | style="color:gray;" |• | llInstantMessage | style="color:gray;" | – | Sends chat to a specific avatar, inside our outside the current region. |-style="vertical-align:top;" | style="color:gray;" |• | llOwnerSay | style="color:gray;" | – | Sends chat to the owner only to avoid spamming the PUBLIC_CHANNEL | |-style="vertical-align:top;" | style="color:gray;" |• | llRegionSay | style="color:gray;" | – | Sends chat region wide | |-style="vertical-align:top;" | style="color:gray;" |• | llSay | style="color:gray;" | – | Sends chat limited to 20 meters | |-style="vertical-align:top;" | style="color:gray;" |• | llShout | style="color:gray;" | – | Sends chat limited to 100 meters | |-style="vertical-align:top;" | style="color:gray;" |• | llWhisper | style="color:gray;" | – | Sends chat limited to 10 meters |
| also_tests