@addoutfit has two forms that share a name.
=n/=y): stops the user wearing clothing or body parts of the given type (or of every type). It's an RLV_LOCK_ADD lock on wearable types. Attachments aren't affected; use @addattach for those.=force): a plain synonym of @attach. It wears the contents of a shared folder under #RLV. It doesn't accept a clothing layer: @addoutfit:shirt=force fails with an option error.@addoutfit[:<layer>]=<n|add|y|rem>
@addoutfit:<folder_path>=force
shape, skin, hair, eyes, shirt, pants, shoes, socks, jacket, gloves, undershirt, underpants, skirt, alpha, tattoo, physics, universal. If it's missing, every wearable type is locked, body parts included. Any other non-empty option fails with an option error.@addoutfit=n also stops the user changing shape, skin, hair or eyes.@attach:x=force,addoutfit=n still wears x.addoutfit has two dictionary entries: add/rem (info) and force.llOwnerSay("@addoutfit:shirt=n"); // can't put a shirt on
llOwnerSay("@addoutfit=n,remoutfit=n"); // clothing frozen as it is
llOwnerSay("@addoutfit:outfits/maid=force"); // same as @attach:outfits/maid=force
RlvBehaviourInfo("addoutfit", RLV_BHVR_ADDOUTFIT, RLV_TYPE_ADDREM) (rlvhelper.cpp:92), handled in the legacy switch (rlvhandler.cpp:1620-1645). The option must be empty or a wearable type, and VERIFY_OPTION_REF reference-counts both. It loops over LLWearableType::WT_COUNT and calls gRlvWearableLocks.addWearableTypeLock(type, obj, RLV_LOCK_ADD). It calls RlvForceWear::done() before changing locks.RlvBehaviourInfo("addoutfit", RLV_CMD_FORCEWEAR, RLV_TYPE_FORCE, FORCEWEAR_WEAR_REPLACE | FORCEWEAR_NODE | FORCEWEAR_CONTEXT_NONE | BHVR_SYNONYM) (rlvhelper.cpp:271). It's processed as described for @attach (rlvhandler.cpp:2883-2900).RlvWearableLocks::canWear() (rlvlocks.h:514-520) and RlvForceWear::forceFolder() (rlvhelper.cpp:1316-1330).This command works differently from RLV's @addoutfit; see the comparison.