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

Syntax

@getcommand=<channel>
@getcommand:<filter>=<channel>
@getcommand:<filter>;<type>=<channel>
@getcommand:<filter>;<type>;<separator>=<channel>

Parameters

filter
Substring to look for in the command name (case-sensitive). Empty matches everything.
type
any or empty (default): all types. add: restrictions (=n/y). force: =force commands. reply: =<channel> queries. Any other value fails with an option error.
separator
String placed between names. Defaults to ;. Because the option itself is split on ;, the separator cannot contain a semicolon; an empty third field joins names with nothing between them.

Return value

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.

Caveats

Examples

// Does this viewer know @setsphere?
llOwnerSay("@getcommand:setsphere;add=6000");

// All reply commands, comma separated
llOwnerSay("@getcommand:;reply;,=6000");

Implementation notes

See also

Comparison with RLV

This command works differently from RLV's @getcommand; see the comparison.