User:Toy Wylie/RLV Documentation/tplure sec

From Second Life Wiki
< User:Toy Wylie‎ | RLV Documentation
Revision as of 14:41, 7 July 2010 by Toy Wylie (talk | contribs) (first draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


@tplure sec

Type

Restriction

Implemented

Implemented since RLV version 1.21

Usage

@tplure_sec=<y/n>

Purpose

Prevents the user from accepting teleport offers by other people. This is the secure counterpart of @tplure. No other objects can add exceptions to this rule than the object that issued this command itself.


Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       llOwnerSay("@tplure_sec=n,tplure:c9d1c876-b65f-4c59-84e2-5c492f94ad11=add");
       llOwnerSay("You can now no longer be teleported by someone else, but Toy Wylie.");
   }

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@tplure_sec=y,tplure:c9d1c876-b65f-4c59-84e2-5c492f94ad11=rem");
           llOwnerSay("Teleporting by other people is now allowed again.");
       }
   }
}</lsl>