@attachallthis has two unrelated forms that share a name: a folder lock (=n/=y) and a force command (=force). Both act on folders chosen relative to worn items.

@attachallthis=force wears (replacing what's already worn) the contents of the shared folder(s) that contain a worn item (by default, the issuing object itself), including all of its non-hidden subfolders.

Syntax

@attachallthis[:<target>]=force

Parameters

target (optional)
Says which folder(s) to act on. The folders are found from worn items: Only items inside #RLV count. If an item lives in a folded folder (.(spine), .(nostrip)), the folder's parent is used. A shared-folder path is not accepted here, and any other option fails with an option error.

Specification

All RLVa force-wear commands share one handler (RLV_CMD_FORCEWEAR). They differ only in three flags taken from the dictionary entry:

CommandActionScopeOption selects
attachreplacefolder only#RLV path
attachallreplacefolder + subfolders#RLV path
attachoveraddfolder only#RLV path
attachalloveraddfolder + subfolders#RLV path
attachthisreplacefolder onlyworn item (self, point, layer, UUID)
attachallthisreplacefolder + subfoldersworn item (self, point, layer, UUID)
attachthisoveraddfolder onlyworn item (self, point, layer, UUID)
attachallthisoveraddfolder + subfoldersworn item (self, point, layer, UUID)
detachallremovefolder + subfolders#RLV path
detachthisremovefolder onlyworn item (self, point, layer, UUID)
detachallthisremovefolder + subfoldersworn item (self, point, layer, UUID)
detachremovefolder (node)path, attachment point, point group, UUID or none

Synonyms that map to exactly the same flags: @addoutfitallthis, @attachallthisoverorreplace.

Caveats

Examples

// Act on the folder this object lives in
llOwnerSay("@attachallthis=force");
// Act on the folder(s) of whatever is worn on the spine
llOwnerSay("@attachallthis:spine=force");

Restriction form

As a restriction, @attachallthis=n stops items being worn from the locked folder (and all of its subfolders): the user can't wear or attach them, and force-wear commands skip them. It's an RLV_LOCK_ADD folder lock with PERM_DENY.

@attachallthis[:<target>]=<n|add|y|rem>

The target selects the folder(s) to lock:

A UUID is not accepted, and anything that isn't one of the above fails with an option error. The option is parsed in the order layer, attachment point, UUID, folder, so a single-component path that's also a layer or point name is taken as that layer or point.

// Lock the folder this collar lives in so it can't be taken off,
// and make the "restraints" folder unwearable
llOwnerSay("@detachallthis=n,attachallthis:restraints=n");

Implementation notes

See also

Comparison with RLV

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