User:Toy Wylie/RLV Documentation/tploc

From Second Life Wiki
< User:Toy Wylie‎ | RLV Documentation
Revision as of 03:49, 15 June 2012 by Toy Wylie (talk | contribs) (Fixed usage having the wrong command in it)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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>