Difference between revisions of "User:Toy Wylie/RLV Documentation/tploc"

From Second Life Wiki
Jump to navigation Jump to search
(first draft)
 
m (Fixed usage having the wrong command in it)
 
Line 1: Line 1:
{{Template:RLV_Documentation/Command
{{Template:RLV_Documentation/Command
|command=@tploc|type=Restriction
|command=@tploc|type=Restriction
|usage=@tplm=<y/n>
|usage=@tploc=<y/n>
|purpose=Prevents the user from teleporting by using the map.
|purpose=Prevents the user from teleporting by using the map.
|version=1.0
|version=1.0

Latest revision as of 04:49, 15 June 2012


@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>