Difference between revisions of "LlShout/ru"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |inject-2={{LSL_Function/chat|channel|msg}} |func_id=24 |func_sleep=0.0 |func_energy=10.0 |func=llShout |sort=Shout |p1_type=integer|p1_name=channel |p2_type=strin…")
 
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/ru
|inject-2={{LSL_Function/chat|channel|msg}}
|inject-2={{LSL_Function/chat/ru|channel|msg}}
|func_id=24
|func_id=24
|func_sleep=0.0
|func_sleep=0.0
Line 8: Line 8:
|p1_type=integer|p1_name=channel
|p1_type=integer|p1_name=channel
|p2_type=string|p2_name=msg
|p2_type=string|p2_name=msg
|func_desc=Shouts the text supplied in string {{LSLP|msg}} on channel supplied in integer {{LSLP|channel}}.
|func_desc=Выкрикивает сообщение, обозначенное в строке {{LSLP|msg}} на канале под номером {{LSLP|channel}}.
|spec
|spec
|constants
|constants
|caveats=*Text can only be a maximum of 1023 bytes.
|caveats=*Максимальная длина текста - 1023 байта.
*Shouts can only be heard within 100 meters of the speaking prim (rather than the root). This is contrary to how [[listen]]s work, where a message can only be heard by any prim in the object if and only if the root prim is capable of hearing it.
*Выкрикиваемое сообщение слышно на расстоянии 100 метров от произносящего примитива (а не корневого). У события [[listen]] иное поведение - примитив в связанном объекте слышит сообщение только если его может услышать корневой примитив.
*A prim can '''not''' hear itself, this to prevent problems with recursion. It can however hear other prims within the same object.
*Примитив '''не может''' слышать сам себя, это сделано для избежания рекурсии. Однако, он может слышать другие примитивы связанного объекта.
|examples=<lsl>default
|examples=<lsl>default
{
{
Line 21: Line 21:
     }
     }
}</lsl>
}</lsl>
For communicating with the user or owner it is much better to use [[llDialog]], [[llOwnerSay]] or [[llInstantMessage]] as they won't spam other users.
Во избежание засорения чата других пользователей, для отправления сообщений владельцу объекта лучше использовать [[llDialog]], [[llOwnerSay]] или [[llInstantMessage]]
|helpers
|helpers
|also_events={{LSL DefineRow||[[listen]]|}}
|also_events={{LSL DefineRow||[[listen]]|}}
Line 27: Line 27:
{{LSL DefineRow||[[llListen]]|}}
{{LSL DefineRow||[[llListen]]|}}
{{LSL DefineRow||[[llOwnerSay]]|}}
{{LSL DefineRow||[[llOwnerSay]]|}}
{{LSL DefineRow||[[llRegionSay]]|Sends chat region wide}}
{{LSL DefineRow||[[llRegionSay]]|Отправляет сообщение по всему региону}}
{{LSL DefineRow||[[llWhisper]]|Sends chat limited to 10 meters}}
{{LSL DefineRow||[[llWhisper]]|Произносит сообщение на расстояние 10 метров}}
{{LSL DefineRow||[[llSay]]|Sends chat limited to 20 meters}}
{{LSL DefineRow||[[llSay]]|Произносит сообщение на расстояние 20 метров}}
{{LSL DefineRow||[[llInstantMessage]]|}}
{{LSL DefineRow||[[llInstantMessage]]|}}
|also_tests
|also_tests

Revision as of 00:47, 26 August 2012

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

Function: llShout( integer channel, string msg );

Выкрикивает сообщение, обозначенное в строке msg на канале под номером channel.

• integer channel канал вывода , любое целочисленное значение
• string msg произносимое сообщение
Channel Constant Description
DEBUG_CHANNEL 0x7FFFFFFF Канал, зарезервированный для сообщений ошибках и тестовых сообщений.
PUBLIC_CHANNEL 0x0 Канал, слышный всем пользователям в радиусе действия.

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

  • Messages sent on PUBLIC_CHANNEL and DEBUG_CHANNEL are throttled to a rate of <200/2sec, per region, per owner/user.
    • Once the rate is exceeded, all following messages on PUBLIC_CHANNEL or DEBUG_CHANNEL will be dropped until the send rate is again below 200/2sec for the previous 2 sec. Dropped messages, despite being dropped still count against the limit.
  • Максимальная длина текста - 1023 байта.
  • Выкрикиваемое сообщение слышно на расстоянии 100 метров от произносящего примитива (а не корневого). У события listen иное поведение - примитив в связанном объекте слышит сообщение только если его может услышать корневой примитив.
  • Примитив не может слышать сам себя, это сделано для избежания рекурсии. Однако, он может слышать другие примитивы связанного объекта.
All Issues ~ Search JIRA for related Bugs

Примеры

<lsl>default {

   state_entry()
   {
       llShout(0,"This is an incredibly useless program!" );
   }

}</lsl>

Во избежание засорения чата других пользователей, для отправления сообщений владельцу объекта лучше использовать llDialog, llOwnerSay или llInstantMessage

См. также

События

•  listen

Функции

•  llListen
•  llOwnerSay
•  llRegionSay Отправляет сообщение по всему региону
•  llWhisper Произносит сообщение на расстояние 10 метров
•  llSay Произносит сообщение на расстояние 20 метров
•  llInstantMessage

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

Search JIRA for related Issues

Описания

function void llShout( integer channel, string msg );