Difference between revisions of "LlSayTo"

From Second Life Wiki
Jump to navigation Jump to search
(llSayTo new function request)
 
m
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|mode=request
|func_id=???
|func_id=???
|func_sleep=0.0
|func_sleep=0.0
|func_energy=10.0
|func_energy=10.0
|func=llSayTo
|func=llSayTo
|sort=Say
|p1_type=key|p1_name=user|p1_desc=Key of avatar to send to
|p1_type=key|p1_name=user
|p2_type=string|p2_name=msg|p2_desc=Message to send
|p2_type=string|p2_name=msg
|func_desc=Says the text supplied in string '''msg''' on to the avatar represented by '''avatar_key'''.
|func_desc=Says the text supplied in string '''msg''' on to the avatar represented by '''avatar_key'''.
|return_text
|return_text
|spec
|spec=Very similar to [[llOwnerSay]], except for being able to specify who you are talking to.  Eliminates the gridwide and time-delay aspects of [[llInstantMessage]], as well as the offline ability.
|constants
|constants
|caveats=*Text can only be a maximum of 1024 bytes.
|caveats=*Text can only be a maximum of 1024 bytes.
*Phrases spoken with llSayTo can only be heard by the designated avatar if they are in the same [[region]].
*Phrases spoken with llSayTo can only be heard by the designated avatar if they are in the same [[region]].
|examples=<pre>
|examples=<lsl>
default {
default {
     touch_start(integer total_number)
     touch_start(integer total_number)
     {
     {
         integer i;
         integer i;
         for (i = 0; i < total_number; i++)  
         for (i = 0; i < total_number; ++i)  
         {
         {
             key id = llDetectedKey(i);
             llSayTo(llDetectedKey(i), "You touched me!");
            llSayTo(key, "You touched me!");
         }
         }
     }  
     }  
  }
  }
</pre>
</lsl>
|helpers
|helpers
|also_events=
|also_events=
Line 31: Line 30:
|also_functions=
|also_functions=
{{LSL DefineRow||[[llListen]]|}}
{{LSL DefineRow||[[llListen]]|}}
{{LSL DefineRow||[[llRegionSayTo]]|Sends chat to specified avatar or object in the same region}}
{{LSL DefineRow||[[llOwnerSay]]|Sends chat to the owner only to avoid spamming the [[PUBLIC_CHANNEL]]}}
{{LSL DefineRow||[[llOwnerSay]]|Sends chat to the owner only to avoid spamming the [[PUBLIC_CHANNEL]]}}
{{LSL DefineRow||[[llRegionSay]]|Sends chat region wide}}
{{LSL DefineRow||[[llRegionSay]]|Sends chat region wide}}
Line 38: Line 38:
|also_tests
|also_tests
|also_articles
|also_articles
|notes=
|notes
Very similar to [[llOwnerSay]], except for being able to specify who you are talking to.  Eliminates the gridwide and time-delay aspects of [[llInstantMessage]], as well as the offline ability.
|comment=How does this differ from [[llRegionSayTo]]? -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 22:38, 12 November 2011 (PST)
|cat1=Communications
|cat1
|cat2=Chat
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 23:38, 12 November 2011

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: llSayTo( key user, string msg );
REQUEST Function ID
0.0 Forced Delay
10.0 Energy

Says the text supplied in string msg on to the avatar represented by avatar_key.

• key user Key of avatar to send to
• string msg Message to send

Specification

Very similar to llOwnerSay, except for being able to specify who you are talking to. Eliminates the gridwide and time-delay aspects of llInstantMessage, as well as the offline ability.

Caveats

  • Text can only be a maximum of 1024 bytes.
  • Phrases spoken with llSayTo can only be heard by the designated avatar if they are in the same region.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl> default {

   touch_start(integer total_number)
   {
       integer i;
       for (i = 0; i < total_number; ++i) 
       {
           llSayTo(llDetectedKey(i), "You touched me!");
       }
   } 
}
</lsl>

See Also

Events

•  listen

Functions

•  llListen
•  llRegionSayTo Sends chat to specified avatar or object in the same region
•  llOwnerSay Sends chat to the owner only to avoid spamming the PUBLIC_CHANNEL
•  llRegionSay Sends chat region wide
•  llWhisper Sends chat limited to 10 meters
•  llShout Sends chat limited to 100 meters
•  llInstantMessage

Deep Notes

Search JIRA for related Issues

Signature

//function void llSayTo( key user, string msg );