@clear removes restrictions and exceptions issued by the calling object (the UUID that sent the command). It never touches what other objects have set. Without a parameter it removes everything the object holds. With =<pattern> it removes only the entries whose text contains the pattern.
@clear
@clear=<pattern>
behaviour or behaviour:option (for example tplure, tplure:<uuid>, detach:spine). The whole command line is lowercased first, so matching is case-insensitive. An empty pattern (@clear=) clears everything.@clear=tp clears tplm, tploc, tplure, tplocal, but also sittp, standtp, accepttp, and any exception whose option contains "tp". @clear=tplure: clears only the @tplure:<uuid> exceptions, not @tplure itself.n/add and y/rem before @clear's own handling. So @clear=n doesn't clear anything: it stores a meaningless restriction called clear, which then shows up in @getstatus. @clear=y just removes that entry. To clear entries containing "n" or "y", use a longer pattern.@clear=force clears entries containing "force". It isn't a force command.@clear:abc=def clears entries containing def.@clear,detachme=force reliably clears first and detaches second./clear (or /clear:<pattern>) line is sent with no = suffix, followed by one /<restriction>=y line for each entry removed.@detach lock in the detach event can stop the viewer re-attaching an attachment that was knocked off by accident (see @defaultwear and @detach). The spec recommends not calling @clear on detach, and relying on the garbage collector instead.@fartouch, @sittp, @tplocal). If the avatar isn't sitting, it also forgets the stored @standtp location.// Release everything this object set
llOwnerSay("@clear");
// Drop only the teleport-by-friend exceptions
llOwnerSay("@clear=tplure:");
// Release, then detach ourselves
llOwnerSay("@clear,detachme=force");
reallyHandleCommand() (RRInterface.cpp 1915-1931): with no =, parseCommand() fails and the bare word clear calls clear(uuid). With =, the chain is n/add → add(), y/rem → remove(), behav=="clear" → clear(uuid, param), force → force().RRInterface::clear() (1500-1548) erases every entry with it->first == uuid && (command=="" || it->second.find(command) != npos), notifying each one. It then calls updateAllHudTexts(), updateCameraLimits(), updateSetsphere() and updateLimits().clear() for objects that no longer exist (1571-1615).@standtp handling: Marine forgets the last standing location whenever the avatar isn't sitting. CoolVL also forgets it when no @standtp remains at all, even if the avatar is sitting.@setsphere state (CoolVL has no @setsphere).No significant differences from RLVa's @clear.