If you bind a key to your alias like normal commands, Q3 will echo (display) the content of the alias (the list of commands inside). This alias is treated like any other command in Q3, though there is only one difference. A script can range from a simple toggle script to enable/mute the sound to giant scripts that perform more complex functions such as timing item spawns.Ī script often consists of one or more aliases. Scripts are a number of commands executed in order, or variables changed to a certain setting by an automated script which can be called via a single button press. I want to assign my 'W' key to walking forward. This can be done using the "bind" command. However, sometimes you want to assign a certain command to a key. Most primary functions (like walking, strafing, jumping, shooting) can be bound through the controls menu. Your character won't stop walking until you enter -forward in the console. To check out how this works, just enter +forward in the console and you'll notice your character starts walking forward. When the key is released, the player stops walking.
While the forward bound key is held down, the player walks. This command is used to make the player walk forward. The +forward command is an example of this. Possible values are 0 (your gun will not be drawn) or 1 (your gun will be drawn).Ī few commands (often related to player movement) are "key sensitive", meaning they act only while the assigned key is held down. Entering /quit in the console will close Q3 and bring you back to your desktop. A variable holds a value, whereas a command executes a certain function. The difference between a command and a variable may not be clear at first, but it's quite easy to explain. The difference between commands and variables If a variable change requires a restart, you’ll most likely see the pending value as "latched" when you enter the variable name until the game or rendering system is restarted.įor a listing of Console Commands, see Commander Keens Console Commands To reset the render system, enter /vid_restart Mostly variables beginning with r_ (which are related to video settings) need a restart of the render system to be applied. The console will return the current and default values.Ĭertain variables however will not show any immediate change. If you want to see what the current and default values of a certain variable are, enter the variable name without any value behind it and hit enter. When you hit enter the new value will be assigned to the variable. To change the value of a variable, enter the variable name followed by a space and the new value. To execute a command, enter the command or variable and press enter. The console supports TAB COMPLETION, so if you type a partial command then press TAB, the game will fill in the rest of the command if it exists or list all existing commands with that prefix.Ĭommands and variables each must be preceded by a slash / or backslash \ otherwise anything typed in the console will be broadcast as global chat. CURSOR_LEFT and CURSOR_RIGHT let you go back along the string you typed and make edits. Commands you typed previously in the same game session can be recalled via the CURSOR_UP and CURSOR_DOWN keys. Scroll up and down within the console using the PAGEUP and PAGEDOWN keys. Every single game feature or setting that has a value can be changed through the console. The console is a command line interface for the game, similar to how DOS is a command line for Windows, but with completely different commands and variables. This will drop the console down over the top half of your screen and you will see a prompt for entering chat, commands or variables. The tilde key is found above TAB and to the left of number 1. To enter the console, press the tilde ~ key at any time in game except during a map load.