@detach has a restriction form and a force form.
@detach=<n|add|y|rem>
@detach:<attachpt>=<n|add|y|rem>
@detach[:<folder|attachpt|group|uuid>]=force
@detach=nThis makes the issuing object undetachable. The lock is placed on the root of the object's linkset, so a command from a child prim locks the whole attachment. If the object isn't attached when the command arrives (for example an in-world object that is later attached), the lock takes effect when it's attached. If it's dropped to the ground, the lock is released and comes back if it's attached again. A locked attachment that gets detached anyway is reattached by RLVa's watchdog.
@detach:<attachpt>=nThis locks the attachment point against both adding and removing (RLV_LOCK_ADD | RLV_LOCK_REMOVE). Whatever is on the point stays, and nothing new can be attached there. The point name must be valid.
@detach[:…]=forceThis uses the same handler as @remattach. The option is interpreted in this order:
head, torso, arms, legs, hud): detaches every detachable attachment in the group;Anything else, including a clothing layer name, fails with an option error.
@detach=n doesn't make RLV_BHVR_DETACH "active" for code that checks the behavior count, but it does show up in @getstatus.@detach, @remattach and folder locks), nostrip items, and Firestorm's LSL bridge.llOwnerSay("@detach=n"); // this collar can't be removed
llOwnerSay("@detach:left hand=n"); // left hand frozen
llOwnerSay("@detach:hud=force"); // strip every HUD
llOwnerSay("@detach:outfits/gag=force");
RlvBehaviourProcessor<RLV_BHVR_DETACH>("detach") (rlvhelper.cpp:103). Handler: rlvhandler.cpp:1947-1984 (addAttachmentLock(root, obj) or addAttachmentPointLock(idx, obj, RLV_LOCK_ADD|RLV_LOCK_REMOVE); fRefCount = false). The deferred lock is applied in RlvHandler::onAttach() and released in onDetach() (rlvhandler.cpp:955-1030).RlvForceProcessor<RLV_BHVR_DETACH, RlvForceRemAttachHandler>("detach", FORCEWEAR_WEAR_REMOVE | FORCEWEAR_NODE | FORCEWEAR_CONTEXT_NONE) (rlvhelper.cpp:264). Handler: rlvhandler.cpp:2943-2985. Detachability: RlvForceWear::isForceDetachable() (rlvhelper.cpp:1401-1427).This command works differently from RLV's @detach; see the comparison.