@remattach has two roles. As a restriction (=n), it makes everything worn on an attachment point (or on all points) undetachable. As a force command (=force), it detaches things, exactly like @detach=force.
@remattach[:<attach_point_name>]=<y|n>
@remattach[:<attach_point_name>|<uuid>|<folder_path>]=force
chest, left hand, hud center 2). root is accepted as a name for avatar center. Omit it to cover every point.#RLV and the items in that folder are detached (not recursive). A leading #RLV/ is stripped for RLVa compatibility.@remattach=n: no attachment on any point can be detached.@remattach:<point>=n: attachments on that point can't be detached.canDetach), so @detach=force, @remattach=force, @detachall and similar force commands from other objects can't remove locked items either.Same dispatch as @detach=force: a UUID detaches that object; an exact point name, or no option, detaches every object on that point (or all points); anything else is treated as an #RLV folder. Locked objects (by any restriction, including the issuer's own) are skipped.
RestrainedLoveUseStrictGarbageCollectionRestrictions is on, a "Viewer Startup" pseudo-object holds @remattach=n during login until the garbage collector runs.detached illegally to @notify.@remattach=y lifts the lock; it doesn't detach anything.llOwnerSay("@remattach:left hand=n"); // lock whatever is in the left hand
llOwnerSay("@remattach:chest=force"); // strip the chest attachments
llOwnerSay("@remattach:" + (string)gagKey + "=force");
Spec discrepancy: the spec says llAttachToAvatar() calls onto a @remattach-locked point "will fail (attached, then detached right away)". In the code, that automatic detach on attach is driven by canAttach, which only consults @addattach and folder locks, not @remattach. Adding a second object to a locked, occupied point probably succeeds; only replacing fails.
canDetachWithExplanation(LLViewerObject*) (RRInterface.cpp:6000-6067) returns @remattach or @remattach:<pt>, with the avatar center/root alias at 6056-6061. The point-name variant is at 6076-6092.mContainsDetach is refreshed for any remattach change (411-421), which also controls HUD locking (hasLockedHuds).forceDetach (2642-2669), forceDetachByUuid (2671-2691) and forceDetachByName. All go through detachObject (3440-3457), which refuses objects that canDetach rejects.root alias for avatar center in its lock checks.isRestoringOutfit()).No significant differences from RLVa's @remattach.