User:Toy Wylie/RLV Documentation/rez

From Second Life Wiki
Jump to navigation Jump to search


@rez

Type

Restriction

Implemented

Implemented since RLV version 1.03

Usage

@rez=<y/n>

Purpose

This restriction prevents the user from rezzing and creating objects. The user will be unable to pull objects from their inventory into the world. Deleting objects or dropping attachments to the ground will also be restricted. This does not affect scripted rezzing, however.


See Also

Example

<lsl>integer rez;

default {

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       rez=TRUE;
       llOwnerSay("Touch me to change the restrictions applied to you.");
   }

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           rez=!rez;
           if(rez==TRUE)
           {
               llOwnerSay("@rez=y");
               llOwnerSay("You can now rez and delete objects once again.");
           }
           else
           {
               llOwnerSay("@rez=n");
               llOwnerSay("Rezzing and deleting objects is now restricted.");
           }
       }
   }

}

</lsl>