User:Toy Wylie/RLV Documentation/permissive

From Second Life Wiki
Jump to navigation Jump to search


@permissive

Type

Restriction

Implemented

Implemented since RLV version 1.21

Usage

@permissive=<y/n>

Purpose

Turns all restrictions into their secure versions. So, for example, @sendim will be treated as if you used @sendim_sec.


Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }
   state_entry()
   {
       llOwnerSay("@permissive=n,sendim=n");
       llOwnerSay("Sending instant messages is now denied for you. And no other object can add exceptions to this restriction. Touch this object to lift the restrictions.");
   }
   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@clear");
           llOwnerSay("Your restrictions have been cleared.");
       }
   }
}</lsl>