User:Toy Wylie/RLV Documentation/tploc

From Second Life Wiki
Jump to navigation Jump to search


@tploc

Type

Restriction

Implemented

Implemented since RLV version 1.0

Usage

@tploc=<y/n>

Purpose

Prevents the user from teleporting by using the map.


See Also

Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       llOwnerSay("@tploc=n");
       llOwnerSay("You can now no longer teleport by using the map.");
   }

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