@detach has a restriction form and a force form.

Syntax

@detach=<n|add|y|rem>
@detach:<attachpt>=<n|add|y|rem>
@detach[:<folder|attachpt|group|uuid>]=force

Restriction: @detach=n

This 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.

Restriction: @detach:<attachpt>=n

This 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.

Force: @detach[:…]=force

This uses the same handler as @remattach. The option is interpreted in this order:

Anything else, including a clothing layer name, fails with an option error.

Caveats

Examples

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");

Implementation notes

See also

Comparison with RLV

This command works differently from RLV's @detach; see the comparison.