Skip to content

llOwnerSay

function
Function syntax
llOwnerSay(
  1. string msg// Text message string to send to the object owner
);
Energy
10

Sends the chat message msg privately to the object owner (the owner must be currently in the same region for the message to be received).

Says msg to the object’s owner only, if the owner is currently in the same region.

How to use
llOwnerSay("");
  • If msg is longer than 1024 bytes, it will be truncated to 1024 bytes. This can convey 1024 ASCII characters, or fewer if non-ASCII are present.
  • Silently fails ~45 seconds after the owner leaves the region the object is in.
  • Silently fails when the object to which the script is attached is deeded to a group.
  • Some viewers do not display llOwnerSay text when msg is empty ("").1
  • The viewer draws the swirly chat particle effect on the object whenever it receives object chat, so the owner sees it.2 Other avatars do not, simply because the message is never delivered to their viewers
Example 1
default
{
touch_start(integer num_detected)
{
llOwnerSay("Ouch!");
}
}
// llOwnerSay extension for preventing silent failures
// paste this code at the top of the script and replace
// any calls to llOwnerSay with uOwnerSayPlus
uOwnerSayPlus(string inputString)
{
key owner = llGetOwner();
// single owner that the region still has a handle for
if (llKey2Name(owner))
{
llOwnerSay(inputString);
}
// group owned, must send the message publicly
10 collapsed lines
else if (llList2Key(llGetObjectDetails(llGetKey(), [OBJECT_GROUP]), 0) == owner)
{
llWhisper(0, "/me : " + inputString);
}
// single owner, not present, send them an IM
else
{
llInstantMessage(owner, inputString);
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

  1. Viewer 746d768339: newview/llfloaterimnearbychathandler.cpp:540-541 ↩

  2. Viewer 746d768339: newview/llviewermessage.cpp:2430-2441; newview/app_settings/settings.xml:2747-2756 ↩