User:Toy Wylie/RLV Documentation/accepttp

From Second Life Wiki
Jump to navigation Jump to search


@accepttp

Type

Exception

Implemented

Implemented since RLV version 1.15

Usage

@accepttp[:UUID]=<add/rem>

Purpose

Adds or removes exceptions for people who should be able to teleport the user without confirmation. If no UUID is given, everyone can teleport the user at any time without warning.


See Also

Example 1

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }
   state_entry()
   {
       llOwnerSay("@accepttp:c9d1c876-b65f-4c59-84e2-5c492f94ad11=add");
       llOwnerSay("You can now be teleported by Toy Wylie without being able to deny the teleport request.");
   }
   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@accepttp:c9d1c876-b65f-4c59-84e2-5c492f94ad11=rem");
           llOwnerSay("The teleport exception has been removed.");
       }
   }
}</lsl>

Example 2

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }
   state_entry()
   {
       llOwnerSay("@accepttp=add");
       llOwnerSay("You can now be teleported by everyone without being able to deny the teleport request.");
   }
   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@accepttp=rem");
           llOwnerSay("The teleport exception has been removed.");
       }
   }

}

</lsl>