@detachallthis 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.

@detachallthis=force takes off 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

@detachallthis[:<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

Caveats

Examples

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

Restriction form

As a restriction, @detachallthis=n stops worn items in the locked folder (and all of its subfolders) being taken off. That covers manual detach, force-detach commands and @remoutfit, and a locked attachment that comes off anyway is reattached by the lock watchdog. It's an RLV_LOCK_REMOVE folder lock with PERM_DENY.

@detachallthis[:<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 @detachallthis; see the comparison.