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

stuffcmd

From Quake Wiki

Revision as of 01:28, 27 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>void stuffcmd(entity client, string s)</code> Sends text to the console as if it had been typed by the '''client''' entity. For use with player entitie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.