Index  

trap_SendClientCommand

Description

Sends command string as a client command directly to server.

Prototype

    void trap_SendClientCommand(
        const char *s
    );

Parameters

Remarks

In contrast, trap_SendConsoleCommand() sends the string to the local console first, and, if not recognized there, sends to the server as a client command.
This trap makes no distinction among EXEC_NOW, EXEC_INSERT, or EXEC_APPEND as with trap_SendConsoleCommand(), since the command is sent "somewhere else".
The set of "client commands" is separate from "console commands", so that a misbehaving client cannot kill a server by attempting to send "quit" as a command.
In baseq3, the common SendClientCommand commands are "score" (to obtain information for scoreboard), "tell" (chat, commands), and "vtell" (Q3TA chat with WAV playback).

Return value

This function has no return value.

See also

Author(s)

PhaethonH


QuakeIII trap calls reference