Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
stuffcmd
From Quake Wiki
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.