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

From Second Life Wiki
Jump to navigation Jump to search
(First version)
 
(No difference)

Latest revision as of 13:43, 9 January 2011


@standtp

Type

Restriction

Implemented

Implemented since RLV version 2.1.2 and 1.24

Usage

@standtp=<y/n>

Purpose

Prevents the victim from standing up in a different location than they sat down. This means if the restriction is active, and the victim manages to sit through a wall, or on a far away object, they will be moved back to where they were as soon as they stand up.

Notes

This will fail if the region or parcel you are on uses teleport routing or telehubs. The victim might be moved to the nearest telehub or might see the message: Could not teleport closer to destination. In general it might be better to make sure, sitting on objects is properly restricted.

See Also

Example

<lsl>integer locked;

default {

   state_entry()
   {
       locked=FALSE;
       llOwnerSay("Click me to enable the @standtp restriction.");
   }
   touch_start(integer total_number)
   {
       if(locked)
       {
           llOwnerSay("@clear");
           llOwnerSay("Restriction lifted.");
       }
       else
       {
           llOwnerSay("@standtp=n");
           llOwnerSay("Now sit somewhere and stand back up. Touch me again to lift the restriction.");
       }
       locked=!locked;
   }
}</lsl>