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

Syntax

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

Parameters

attachpt (restriction)
Optional attachment point name (for example 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.
option (force)
The option is parsed by RLVa's generic option parser, which tries these interpretations in this order: clothing layer name, attachment point name, UUID, shared folder path, attachment-point group name, vector, number, plain string. The force handler then acts on the result:

Caveats

Examples

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

See also

Implementation notes

Comparison with RLV

No significant differences from RLV's @remattach.