Index  

trap_AddCommand

Description

Add a command name to the tab-completion list of the console.

Prototype

    void trap_AddCommand(
        const char *cmdName
    );

Parameters

cmdName : Command name.

Remarks

The string cmdName is added to a tab-completion list for the console.
Tab completion is case-insensitive, but the completed string is rewritten with the stored capitalization.
Commands added to the commands[] array are automatically addded for tab-completion by the function CG_InitConsoleCommands(), and, in fact, this is the only function that calls this trap in the baseq3 game source.

Return value

This function has no return value.

See also

Console Variables

Author(s)

PhaethonH


QuakeIII trap calls reference