User:Toy Wylie/RLV Documentation/fly

From Second Life Wiki
Jump to navigation Jump to search


@fly

Type

Restriction

Implemented

Implemented since RLV version 1.12.2

Usage

@fly=<y/n>

Purpose

Prevents the user from flying. If the victim was flying, they will stop flying immediately and fall down to earth.


See Also

Example

<lsl>default

{

   on_rez(integer num)
   {
       llResetScript();
   }
   state_entry()
   {
       llOwnerSay("@fly=n");
       llOwnerSay("You can now no longer fly.");
   }
   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@fly=y");
           llOwnerSay("You can now fly again.");
       }
   }
}</lsl>