Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing stuffcmd
From Quake Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | ====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 entities only. |
− | + | ====Parameters:==== | |
+ | :<code>client</code> - The entity to send the console text from. | ||
+ | :<code>s</code> - The text to place on the console. | ||
+ | ====Returns:==== | ||
+ | :void | ||
+ | ====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. | ||
− | + | The command generates a reliable [[SVC_STUFFTEXT]] network message. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:QuakeC Function]] | [[Category:QuakeC Function]] |