@attachallthis is a force command that makes the viewer wear the contents of a shared folder chosen by reference to something already worn: with no option, the folder that contains the inventory item of the object sending the command; with an option, the folder(s) containing whatever is worn on the given attachment point or clothing layer, or the attachment with the given UUID. It is a shortcut for @getpathnew followed by @attachall, without a listener or timeout.

This is the recursive variant: after the folder itself, every subfolder is processed in turn (depth first), except subfolders whose name begins with a dot.

Replace, unless the folder name says stack: objects whose name contains a target attachment point replace whatever is on that point, and clothing replaces the item on the same layer. If the name of the folder being attached begins with the string in the debug setting RestrainedLoveStackWhenFolderBeginsWith (default +), that folder is stacked instead, exactly as with the …over variant. The check is made per folder, so with recursive variants each subfolder decides for itself.

Sent with =n/=y instead of =force, the same name is a folder-lock restriction that prevents wearing folders; see Restriction form below.

Syntax

@attachallthis[:<attachpt>|<clothing_layer>|<uuid>]=force
@attachallthis:<attachpt>|<clothing_layer>|<path_to_folder>=<y/n>
@addoutfitallthis…=force   (undocumented alias, same code path)

Parameters

(no option)
Use the folder containing the inventory item of the issuing object. The object must be an attachment whose item lives under #RLV; otherwise nothing happens.
attachpt
An attachment point name, matched exactly (case-insensitive), e.g. spine, l forearm. Every object worn on that point that comes from #RLV contributes its folder.
clothing_layer
A layer name (shirt, pants, alpha…). Every worn item on that layer that comes from #RLV contributes its folder.
uuid
The key of a worn object; its folder is used. Accepted by the code although the spec only lists attachment points and layers for this command.

How folders and items are resolved

Caveats

Examples

// Wear everything in the folder this collar came from
llOwnerSay("@attachallthis=force");

// Wear the folder(s) of whatever is worn on the left forearm
llOwnerSay("@attachallthis:l forearm=force");

Restriction form

@attachallthis[:<attachpt>|<clothing_layer>|<path_to_folder>]=<y/n>

Like the @attachthis restriction, but the lock also applies to every subfolder of the matching folder. When the viewer checks a folder that is not itself locked, it walks up the parents looking for an attachallthis lock.

Exceptions. @attachthis_except and @attachallthis_except punch holes in these locks, but only for locks issued by the same object. Walking up from the folder being worn, the nearest matching rule wins: an exception on the folder (or an …allthis_except on a parent) unlocks it, while a lock found first keeps it locked.

// Lock Jewelry and everything under it, but allow Jewelry/Gold
llOwnerSay("@attachallthis:Jewelry=n,attachallthis_except:Jewelry/Gold=add");

Notes

Spec discrepancies

See also

Implementation notes

Client differences

Comparison with RLVa

This command works differently from RLVa's @attachallthis; see the comparison.