User:Toy Wylie/RLV Documentation/remoutfit

From Second Life Wiki
Jump to navigation Jump to search


@remoutfit

Type

# Restriction
  1. General

Implemented

Implemented since RLV version 1.10

Usage

# @remoutfit[:<clothingtype>]=<y/n>
  1. @remoutfit[:<clothingtype>]=force

Purpose

1. This is a counterpart function to @remattach. Blocks the user from taking off the specified clothing type. <clothingtype> may be one of the following items:
* gloves jacket pants shirt shoes skirt socks underpants undershirt skin eyes hair shape alpha tattoo
If you don't provide a clothing type, the user will be prevented from taking off any clothes at all. Using this general restriction does not remove any single outfit blocks already present. So if you remove the general block later, the single blocks will still be in effect. No clothing items will be taken off by this command itself.
2. Forces the avatar to take off the specified clothing type. If no clothing type is present, the avatar will take off all clothes.

Notes

* You can't specify more than one item of clothing at the same time. You need to do one call for each type of clothing you want to block.
  • skin, shape, eyes and hair can not be taken off.

See Also

Example

<lsl>integer mode;

default {

   on_rez(integer num)
   {
       llResetScript();
   }

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

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           mode++;
           if(mode==3)
           {
               mode=0;
           }
           if(mode==0)
           {
               llOwnerSay("@clear");
               llOwnerSay("You can now take off clothes freely once again.");
           }
           else if(mode==1)
           {
               llOwnerSay("@remoutfit:pants=n,remoutfit:socks=n");
               llOwnerSay("You are now prevented from taking off pants and socks.");
           }
           else if(mode==2)
           {
               llOwnerSay("@remoutfit:pants=y,remoutfit:socks=y,remoutfit=n");
               llOwnerSay("You are now prevented from taking off clothes at all.");
           }
       }
   }

}

</lsl>