@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.
@detachthis[:<attachpt>|<layer>|<path>]=<n|y>
@detachthis[:<attachpt>|<layer>|<uuid>]=force
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:
@detachthis=n. The issuing object is itself locked as well;spine, root = Avatar Center): the folder contains an object worn on that point;shirt): the folder contains clothing or a body part worn on that layer;@detachthis:=n (empty option, colon present) points at #RLV itself.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.
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.
~ and that arrived this session, or any other folder or item received this session, is treated as not locked in Marine's viewer. This lets freshly given items be worn and removed.#RLV have no path, so @detachthis=force from an unshared object does nothing.nostrip folder can never be removed anyway.uuid option for the force form only. The restriction form has no UUID handling, so a UUID option is treated as a path (and will normally match nothing).// 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");
getFullPath() 5414-5509, then forceDetachByName(path, false)).canDetachCategory() / canDetachCategoryAux() 5727-5846. Path locks and exceptions: isFolderLockedWithoutException[Aux]() 1106-1238. Only restrictions that contain a : are considered, so detachthis and detachthis: mean different things. Object self-lock: 6024.isFolderLocked() (1093-1104) from llinventorymodel.cpp, llinventorybridge.cpp and lltooldraganddrop.cpp.root alias for Avatar Center in the point check.nostrip directly in canDetachCategory(). Marine checks it per folder in canDetachCategoryAux(), and only outside bulk outfit replacement.This command works differently from RLVa's @detachthis; see the comparison.