Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

stuffcmd

From Quake Wiki

Revision as of 16:37, 3 May 2015 by Spirit (talk | contribs)

Syntax:

void stuffcmd(entity client, string s)

Sends text to the console as if it had been typed by the client entity. For use with player entities only.

Parameters:

client - The entity to send the console text from.
s - The text to place on the console.

Returns:

void

Other Details:

Note that if you do not add a newline character (\n), the text will stay on the console until a newline character is entered. In the case of commands, the commands will not be executed.

The command generates a reliable SVC_STUFFTEXT network message.