Difference between revisions of "User:Toy Wylie/RLV Documentation/sit"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '{{Template:RLV_Documentation/Command |command=@sit|type=Interaction |usage=@sit |purpose=Forces the target to sit on the inputed object. This is used primaraly for catching victi...')
 
(Need a better way to deal with multiple purpose commands)
Line 1: Line 1:
{{Template:RLV_Documentation/Command
{{Template:RLV_Documentation/Command
|command=@sit|type=Interaction
|command=@sit|type=General
|usage=@sit
 
|purpose=Forces the target to sit on the inputed object. This is used primaraly for catching victims in RLV traps.
Restriction
|usage=@sit:<UUID>=force
 
@sit=y
 
@sit=n
|purpose=Force-Syntax: Forces the target to sit on the inputed object. This is used primarily for catching victims in RLV traps.
 
Restriction Syntax: Prevents the target to sit down at all.
|version=1.04a
|version=1.04a
|seealso=@unsit
|seealso=unsit sittp
|example=<lsl>integer RelayChannel=-1812221819;
|example=<lsl>default
 
default
{
{
     state_entry()
     state_entry()
     {
     {
         llSitTarget(<0,0,0.1>,llEuler2Rot(<0,0,0> * DEG_TO_RAD));// set sit position
        // set sit position
         llSitTarget(<0,0,0.1>,ZERO_ROTATION);
     }
     }


     touch_start(integer total_number)
     touch_start(integer total_number)
     {
     {
         key Toucher = llDetectedKey(0);
         llOwnerSay("@sit:"+(string) llGetKey()+"=force");
        llSay( RelayChannel,"Catch,"+(string)Toucher+",@sit:"+(string)llGetKey()+"=force|@unsit=n");
         llOwnerSay("You have been caught.");
         llSay(0,llKey2Name(Toucher)+" has been caught!");
     }
     }
}
}
</lsl>
</lsl>
}}
}}

Revision as of 07:56, 7 July 2010


@sit

Type

General Restriction

Implemented

Implemented since RLV version 1.04a

Usage

@sit:<UUID>=force

@sit=y

@sit=n

Purpose

Force-Syntax: Forces the target to sit on the inputed object. This is used primarily for catching victims in RLV traps. Restriction Syntax: Prevents the target to sit down at all.


See Also

Example

<lsl>default

{

   state_entry()
   {
       // set sit position
       llSitTarget(<0,0,0.1>,ZERO_ROTATION);
   }
   touch_start(integer total_number)
   {
       llOwnerSay("@sit:"+(string) llGetKey()+"=force");
       llOwnerSay("You have been caught.");
   }

}

</lsl>