User:Toy Wylie/RLV Documentation/standtp
Jump to navigation
Jump to search
@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.
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>