@detachthis works on folders of the shared #RLV inventory. As a restriction it stops the user removing anything in a folder, chosen by the object's own location, by what is worn on a point or layer, or by path. As a force command it removes the items in the folder that holds a given object.

Syntax

@detachthis[:<attachpt>|<layer>|<path>]=<n|y>
@detachthis[:<attachpt>|<layer>|<uuid>]=force

Specification

Restriction (=n/y)

A folder can't be removed (its items can't be detached or taken off, by the user or by other objects' force commands) if:

Single no-modify objects in .-prefixed subfolders named after an attachment point count as part of their parent folder. Path-based locks (not the option-less form) also stop the folder being moved or renamed, and stop items being moved into or out of it.

Path locks can be punched through by @detachthis_except / @detachallthis_except exceptions issued by the same object.

Force (=force)

Works out the folder path(s) like @getpathnew:

It then removes each folder's direct contents as @detach:<folder>=force would. Subfolders aren't included; see @detachallthis for that.

Caveats

Examples

// Lock the outfit folder this item came from
llOwnerSay("@detachthis=n");

// Lock whatever outfit provides the worn shirt
llOwnerSay("@detachthis:shirt=n");

// Remove the folder(s) holding whatever is worn on the left forearm
llOwnerSay("@detachthis:l forearm=force");

See also

Implementation notes

Client differences

Comparison with RLVa

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