@getcommand[:<filter>[;<type>[;<separator>]]]=<channel> lets a script discover which commands the viewer's RLVa knows. It lists names from RLVa's behavior dictionary, so it is the most direct way to feature-test a particular RLVa build.
@getcommand=<channel>
@getcommand:<filter>=<channel>
@getcommand:<filter>;<type>=<channel>
@getcommand:<filter>;<type>;<separator>=<channel>
any or empty (default): all types. add: restrictions (=n/y). force: =force commands. reply: =<channel> queries. Any other value fails with an option error.;. Because the option itself is split on ;, the separator cannot contain a semicolon; an empty third field joins names with nothing between them.The matching names joined by the separator, in dictionary registration order. A name registered for several types (e.g. fly as a restriction and as a force command) appears once per matching registration, so it can appear more than once under any. For restrictions that have a strict variant, the _sec name is listed right after the base name when it also matches the filter.
getdebug_/setdebug_ and getenv_/setenv_ families, local modifiers like setsphere_*/setoverlay_* force forms, and clear, do not appear.touchfar, camdistmax, the addoutfit* force synonyms) are listed like any other.BHVR_EXTENDED; the flag has no runtime effect.// Does this viewer know @setsphere?
llOwnerSay("@getcommand:setsphere;add=6000");
// All reply commands, comma separated
llOwnerSay("@getcommand:;reply;,=6000");
rlvhelper.cpp 319 (RlvReplyProcessor, BHVR_EXTENDED). Handler rlvhandler.cpp 3768-3795; the list comes from RlvBehaviourDictionary::getCommands, rlvhelper.cpp 467-482.boost::split on ; (parseStringList, rlvhelper.cpp 970-975), so empty fields are preserved.This command works differently from RLV's @getcommand; see the comparison.