Difference between revisions of "User:Toy Wylie/RLV Documentation/chatwhisper"

From Second Life Wiki
Jump to navigation Jump to search
m (usage fix)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Template:RLV_Documentation/Command
{{Template:RLV_Documentation/Command
|command=@chatwhisper|type=Restriction
|command=@chatwhisper|type=Restriction
|usage=@chatwhisper=y
|usage=@chatwhisper=<y/n>
 
|purpose=When prevented (@chatwhisper=n), the avatar will chat normally even when the user tries to whisper. This does not change the message in any way, only its range.
@chatwhisper=n
|purpose=When prevented (@chatwhisper=y), the avatar will chat normally even when the user tries to whisper. This does not change the message in any way, only its range.
|version=1.15
|version=1.15
|seealso=chatnormal
|seealso=chatnormal chatshout
|example=<lsl>integer     whisperChat = TRUE;
|example=<lsl>integer whisperChat = TRUE;
   
   
default
default

Latest revision as of 07:40, 7 July 2010


@chatwhisper

Type

Restriction

Implemented

Implemented since RLV version 1.15

Usage

@chatwhisper=<y/n>

Purpose

When prevented (@chatwhisper=n), the avatar will chat normally even when the user tries to whisper. This does not change the message in any way, only its range.


Example

<lsl>integer whisperChat = TRUE;

default {

   touch_start(integer total_number)
   {
       if (llDetectedKey(0) != llGetOwner()) return;

       whisperChat = 1-whisperChat;

       if(whisperChat)
       {
           llOwnerSay("@chatwhisper=y");
           llSay(0, "Chat restrictions are lifted.");
       }
       else
       {
           llOwnerSay("@chatwhisper=n");
           llSay(0, "Chat is now restricted to normal.");
       }
   }

}

</lsl>