Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "stuffcmd"
From Quake Wiki
(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...") |
|||
Line 10: | Line 10: | ||
====Other Details:==== | ====Other Details:==== | ||
Note that if you do not add a newline character (<code>\n</code>), the text will stay on the console until a newline character is entered. In the case of commands, the commands will not be executed. | Note that if you do not add a newline character (<code>\n</code>), 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. | ||
[[Category:QuakeC Function]] | [[Category:QuakeC Function]] |
Revision as of 16:37, 3 May 2015
Contents
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.