@remattach has two unrelated halves. As a restriction (=n/=y) it places a remove lock on every attachment point, or on one named point, so that whatever is attached there cannot be detached. As a force command (=force) it detaches attachments: everything, one attachment point, one attachment-point group, one specific attachment, or the contents of a shared (#RLV) folder.
It is the counterpart of @addattach, which locks points against adding attachments; the two share one handler.
@remattach[:<attachpt>]=<n|y|add|rem>
@remattach[:<folder|attachpt|attachgroup|uuid>]=force
chest, left hand). With no option every attachment point is locked. An option that is not a valid attachment point name fails the command with RLV_RET_FAILED_OPTION.#RLV folder (same as @detach:<folder>=force);RLV_RET_FAILED_OPTION.@remattach:chest=n sets the per-point lock but does not count as "holding @remattach", so it does not show up in hasBehaviour(RLV_BHVR_REMATTACH) checks elsewhere in the viewer. In practice the per-point lock itself is still enforced through the attachment lock table.RlvForceWear::done()), so a force command sent just before the restriction is applied under the old locks.@remattach, @detach, folder locks and so on), items whose name or folder contains nostrip, and the Firestorm LSL bridge.chest directly under #RLV) is treated as the attachment point or layer, not the folder.RLV_RET_FAILED if your avatar is not yet valid (for example very early in login).// Nothing worn can be taken off
llOwnerSay("@remattach=n");
// Only the left hand is locked against detaching
llOwnerSay("@remattach:left hand=n");
// Strip all attachments that are not locked or nostrip
llOwnerSay("@remattach=force");
// Detach whatever is in #RLV/Outfits/Gag
llOwnerSay("@remattach:Outfits/Gag=force");
RlvBehaviourProcessor<RLV_BHVR_REMATTACH, RlvBehaviourAddRemAttachHandler>("remattach"), no flags (rlvhelper.cpp:133). Handler rlvhandler.cpp:1894-1925 adds/removes RLV_LOCK_REMOVE locks via gRlvAttachmentLocks and sets fRefCount = option.empty().RlvForceProcessor<RLV_BHVR_REMATTACH, RlvForceRemAttachHandler>("remattach", FORCEWEAR_WEAR_REMOVE | FORCEWEAR_NODE | FORCEWEAR_CONTEXT_NONE) (rlvhelper.cpp:268); handler rlvhandler.cpp:2943-2984, shared with @detach=force (rlvhelper.cpp:264).rlvhelper.cpp:942-968. Force-detachability: RlvForceWear::isForceDetachable, rlvhelper.cpp:1401-1427.No significant differences from RLV's @remattach.