@addoutfit is a restriction that stops the user from putting on clothing and body parts. With an option it applies only to one wearable layer; without one it applies to every layer. Things already being worn stay on (removing them is governed by @remoutfit). It is the counterpart of @addattach, which does the same for attachments.

The same name sent with =force is something entirely different: an undocumented alias of @attach (force-wear a shared folder). See Force form.

Syntax

@addoutfit[:<layer>]=<y/n>      (also =add / =rem)
@addoutfit:<folder1/.../folderN>=force   (alias of @attach)

Parameters

layer
One of: gloves, jacket, pants, shirt, shoes, skirt, socks, underpants, undershirt, skin, eyes, hair, shape, alpha, tattoo, physics, universal. The comparison is exact (after lower-casing the whole command). An unknown layer name is stored without complaint but never matches anything.

What is blocked

Caveats

Examples

// No new clothes at all
llOwnerSay("@addoutfit=n");
// Only forbid putting on a shirt or a jacket
llOwnerSay("@addoutfit:shirt=n,addoutfit:jacket=n");
// Lift the shirt restriction
llOwnerSay("@addoutfit:shirt=y");

Force form

@addoutfit:<path>=force runs exactly the same code as @attach:<path>=force in both clients. Every other attach… force command has a matching addoutfit… alias: @addoutfitover, @addoutfitoverorreplace, @addoutfitall, @addoutfitallover, @addoutfitalloverorreplace, @addoutfitthis, @addoutfitthisover, @addoutfitthisoverorreplace, @addoutfitallthis, @addoutfitallthisover, @addoutfitallthisoverorreplace. None of them is documented in the spec. Sending one of these alias names with =n just stores an inert restriction, except that in Marine's viewer the prefix checks described above will see it (for example @addoutfitover=n blocks folder drag-and-drop wearing).

Notes

See also

Implementation notes

Client differences

Comparison with RLVa

This command works differently from RLVa's @addoutfit; see the comparison.