Skip to main content

The "sys_toggle_cmd" Function

Syntax#

sys_toggle_cmd([sound]);
ArgumentTypeDescription
[sound]soundOptional: A sound to be played when the script is run

Description#

Hides the command console if visible, or unhides it if invisible. Also blocks most engine input functions while the console is displayed.

As this script is run automatically by other engine functions, it is almost never necessary to run sys_toggle_cmd manually. By default, the console can be opened and closed using the tilde (~) key when debug mode is enabled.