Difference between revisions of "LlSayTo"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Line 5: | Line 5: | ||
|func_energy=10.0 | |func_energy=10.0 | ||
|func=llSayTo | |func=llSayTo | ||
|p1_type=key|p1_name=user | |p1_type=key|p1_name=user | ||
|p2_type=string|p2_name=msg | |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. | ||
Line 19: | Line 18: | ||
{ | { | ||
integer i; | integer i; | ||
for (i = 0; i < total_number; | for (i = 0; i < total_number; ++i) | ||
{ | { | ||
llSayTo(llDetectedKey(i), "You touched me!"); | |||
} | } | ||
} | } | ||
Line 39: | Line 37: | ||
|also_tests | |also_tests | ||
|also_articles | |also_articles | ||
|notes | |notes | ||
|cat1 | |||
|cat1 | |cat2 | ||
|cat2 | |||
|cat3 | |cat3 | ||
|cat4 | |cat4 | ||
}} | }} |
Revision as of 01:33, 11 October 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
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 | |||
• string | msg |
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.
Examples
default { touch_start(integer total_number) { integer i; for (i = 0; i < total_number; ++i) { llSayTo(llDetectedKey(i), "You touched me!"); } } }
See Also
Events
• | listen |
Functions
• | llListen | |||
• | 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 |