User:Toy Wylie/RLV Documentation/tplm

From Second Life Wiki
Jump to navigation Jump to search


@tplm

Type

Restriction

Implemented

Implemented since RLV version 1.0

Usage

@tplm=<y/n>

Purpose

Prevents the user from teleporting by using landmarks or profile picks.


See Also

Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       llOwnerSay("@tplm=n");
       llOwnerSay("You can now no longer teleport by using a landmark.");
   }

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@tplm=y");
           llOwnerSay("Teleporting by landmark is now allowed again.");
       }
   }
}</lsl>