User:Toy Wylie/RLV Documentation/chatnormal

From Second Life Wiki
< User:Toy Wylie‎ | RLV Documentation
Revision as of 08:38, 7 July 2010 by Toy Wylie (talk | contribs) (don't need a numbered list with one single usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


@chatnormal

Type

Restriction

Implemented

Implemented since RLV version 1.15

Usage

@chatnormal=<y/n>

Purpose

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


Example

<lsl>integer normalChat = TRUE;

default {

   touch_start(integer total_number)
   {
       if (llDetectedKey(0) != llGetOwner()) return;
       
       normalChat = 1-normalChat;
       
       if(normalChat)
       {
           llOwnerSay("@chatnormal=y");
       }
       else
       {
           llOwnerSay("@chatnormal=n");
       }
   }

}

</lsl>