LlOwnerSay
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: llOwnerSay( string msg ); |
| 参数:
• string msg – message to be transmitted |
| 返回值:
如果物体的所有者当前位于同一区域,则只对该物体的所有者显示 msg。 |
| 注意事项 |
|---|
注意事项
|
| 示例 |
|---|
示例一
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
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);
}
}
|
| 相关函数 |
|---|
| llRegionSay--把聊天区域扩大
llWhisper-- 发送聊天限制到10米 llSay-- 发送聊天限制到20米 llShout-- 发送聊天限制到100米 llResionSayTo--发送私人聊天区域范围 llInstantMessage--把私人聊天发送到网络上的任何地方 |
| 相关事件 |
|---|