User:Toy Wylie/RLV Documentation/sittp

From Second Life Wiki
Jump to navigation Jump to search


@sittp

Type

Restriction

Implemented

Implemented since RLV version 1.0

Usage

@sittp=<y/n>

Purpose

Prevents the user from sitting on objects that are more than 1.5 meters away from the avatar's center.


See Also

Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       llOwnerSay("@sittp=n");
       llOwnerSay("You can now no longer sit on objects that are far away.");
   }

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@sittp=y");
           llOwnerSay("You can now sit on far away objects again.");
       }
   }
}</lsl>