User:Toy Wylie/RLV Documentation/attach: Difference between revisions
Jump to navigation
Jump to search
first draft |
m Tried to fix the scripting example being displayed a bit broken. It's improved from how it was but still needs to be fixed better. |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|usage=@attach:<folder/path>=force | |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. | |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. | ||
|notes=* You can not attach single items from a folder, only the whole folder contents. | |||
|version=1.13 | |version=1.13 | ||
|seealso=attachall attachallthis addattach | |seealso=attachall attachallthis addattach | ||
|seealsoalso=Shared Objects Tutorial | |seealsoalso=Shared Objects Tutorial | ||
|example= | |example=. | ||
string folder="Outfits/Casual/Streetwear"; | |||
default | |||
{ | { | ||
llResetScript(); | on_rez(integer num) | ||
{ | |||
llResetScript(); | |||
} | |||
state_entry() | |||
{ | |||
llOwnerSay("Touch me to attach the contents of the folder #RLV/"+folder); | |||
} | |||
touch_start(integer num) | |||
{ | { | ||
llOwnerSay("@attach:"+folder+"=force"); | if(llDetectedKey(0)==llGetOwner()) | ||
{ | |||
llOwnerSay("@attach:"+folder+"=force"); | |||
llOwnerSay("Folder contents have been attached."); | |||
} | |||
} | } | ||
} | } | ||
} | } | ||
}} | }} |
Latest revision as of 23:42, 19 December 2024
@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.
Notes
* You can not attach single items from a folder, only the whole folder contents.
See Also
Example
.
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."); } } }}