LlOwnerSay: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
syntax err in example
Fred Gandt (talk | contribs)
Changed max byte count to 1024. Tested against llSay and the return was identical. If I'm wrong, sorry for the bother.
Line 2: Line 2:
|func_id=292|func_sleep=0.0|func_energy=10.0
|func_id=292|func_sleep=0.0|func_energy=10.0
|func=llOwnerSay|p1_type=string|p1_name=msg
|func=llOwnerSay|p1_type=string|p1_name=msg
|func_footnote=Owner must be in the same [[region]], although messages will continue to come through for approximately 45 seconds after leaving the region.
|func_footnote=Owner must be in the same [[region]].
|func_desc=Says '''msg''' to the owner only.
|func_desc=Says '''msg''' to the owner only.
|return_text
|return_text
|spec
|spec
|caveats=
|caveats=*Truncates '''msg''' to 1024 bytes if '''msg''' is more than 1024 bytes long.
*Truncates '''msg''' to 1023 bytes if '''msg''' is more than 1023 bytes long.
*Silently fails when the object to which the script is attached is deeded to group.
|constants
|constants
|examples=<lsl>default
|examples=<pre>
{
default {
     touch_start(integer total_number)
     touch_start()
     {
     {
         llOwnerSay("Ouch!" );
         llOwnerSay("Ouch!" );
     }
     }
}</lsl>
}
</pre>
|helpers
|helpers
|also_functions=
|also_functions=
Line 25: Line 24:
{{LSL DefineRow||[[llInstantMessage]]|}}
{{LSL DefineRow||[[llInstantMessage]]|}}
|also_events
|also_events
|also_tests=
|also_tests
{{LSL DefineRow|[[llOwnerSay Test]]|}}
|also_articles
|also_articles
|notes
|notes

Revision as of 01:56, 11 March 2010

Summary

Function: llOwnerSay( string msg );
0.0 Forced Delay
10.0 Energy

Says msg to the owner only.

• string msg

Owner must be in the same region.

Caveats

  • Truncates msg to 1024 bytes if msg is more than 1024 bytes long.

Examples

default {
    touch_start()
    {
        llOwnerSay("Ouch!" );
    }
}

See Also

Functions

•  llRegionSay Sends chat region wide
•  llWhisper Sends chat limited to 10 meters
•  llSay Sends chat limited to 20 meters
•  llShout Sends chat limited to 100 meters
•  llInstantMessage

Deep Notes

Signature

function void llOwnerSay( string msg );