User:Toy Wylie/RLV Documentation/attach

From Second Life Wiki
< User:Toy Wylie‎ | RLV Documentation
Revision as of 03:49, 8 July 2010 by Toy Wylie (talk | contribs) (first draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


@attach

Type

General

Implemented

Implemented since RLV version 1.13

Usage

@attach:<folder/path>=force

Purpose

Force attaches the contents of a shared folder to the avatar. The folder path can contain subfolders. If a folder name contains a / it will be chosen before considering subfolders. Note: You can not attach single items from a folder, only the whole folder contents.


See Also

Shared Objects Tutorial

Example

<lsl>string folder="Outfits/Casual/Streetwear";

default {

   on_rez(integer num)
   {
       llResetScript();
   }

   state_entry()
   {
       llOwnerSay("Touch me to attach the contents of the folder #RLV/"+folder);
   }

   touch_start(integer num)
   {
       if(llDetectedKey(0)==llGetOwner())
       {
           llOwnerSay("@attach:"+folder+"=force");
           llOwnerSay("Folder contents have been attached.");
       }
   }

}

</lsl>