LlOwnerSay/ru

From Second Life Wiki
< LlOwnerSay
Revision as of 01:09, 26 August 2012 by Highstaker Resident (talk | contribs) (Created page with "{{LSL_Function/ru |inject-2={{LSL_Function/limits}}{{LSL_Function/chat/ru||msg}} |func_id=292|func_sleep=0.0|func_energy=10.0 |func=llOwnerSay|p1_type=string|p1_name=msg |func_de…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Общая информация

Function: llOwnerSay( string msg );

Отправляет сообщение, обозначенное в строке msg, только владельцу объекта.

• string msg произносимое сообщение

Предостережения

  • If msg is longer than 1023 bytes, it will be truncated to 1023 bytes.
  • 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 ("").
All Issues ~ Search JIRA for related Bugs

Примеры

<lsl>default {

   touch_start(integer total_number)
   {
       llOwnerSay("Ouch!" );
   }
}</lsl>

Полезные вырезки

<lsl> //-- llOwnerSay extension for preventing silent failures

//-- paste this code at the top of the script and replace
//--  any calls to llOwnerSay below it with uOwnerSayPlus

uOwnerSayPlus( string vStrMsg ){ key owner = llGetOwner(); if (llKey2Name( owner )){ llOwnerSay( vStrMsg ); //-- single owner that the region still has a handle for }else if (llList2Key( llGetObjectDetails( llGetKey(), [OBJECT_GROUP] ), 0 ) == owner){ llWhisper( 0, "/me : " +vStrMsg ); //-- group owned, must send the message publicly }else{ llInstantMessage( owner, vStrMsg ); //-- single owner, not present, send them an IM } }</lsl>

См. также

Функции

•  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

Статьи

•  Limits SL limits and constrictions

Углублённые заметки

Search JIRA for related Issues

Tests

• llOwnerSay Test

Описания

function void llOwnerSay( string msg );