User:Toy Wylie/RLV Documentation/chatwhisper

From Second Life Wiki
Revision as of 07:49, 7 July 2010 by Liace Parx (talk | contribs) (Created page with '{{Template:RLV_Documentation/Command |command=@chatwhisper|type=Restriction |usage=@chatwhisper=y @chatwhisper=n |purpose=When prevented, the avatar will chat normally even when...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


@chatwhisper

Type

Restriction

Implemented

Implemented since RLV version 1.15

Usage

@chatwhisper=y @chatwhisper=n

Purpose

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


See Also

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>