Using the console.

The console allows you to enter scripting commands. (As you saw in scripts, when you ran the "exec" command). All you have to do is add a slash, and then add a line of script. Make sure to add the slash first, otherwise you'll just end up SAYING the command in the chat.

Of course, you don't want to type "/vsay Cheer" every time you want to cheer. It'd be smarter to add "bind M vsay cheer" to your autoexec.cfg, and then press M whenever you want to cheer... But, the console is still useful if you're testing a new script and you want to get it working before adding it into your config, or if you want to run some occasional command that isn't in your config, etc.

Setting variables.
The most basic command in ET is the set command. The most common use for the "set" command is for setting cvars (standard ET variables). You can get a list of cvars included in ET by going to the console, and typing "/cvarlist".

As an example, there is a cvar called "name", which (obviously) lets you change your name... e.g.:
set name "Duke"

If the variable you are setting is a cvar, you can even omit the set command, and just type:
name "Duke"

Console help.

* What is the CONSOLE? How do I open it?
* My console won?t open!
* Can the console go fullscreen?
* Can I make text from the console go into a text file?
* I want to control the console remotely, without opening Enemy Territory.
* I can't remember some commands!
* What are all the console commands that exist?

 
* What is the CONSOLE? How do I open it?
The console is a part of most games that allows players to enter commands,
that tell the game what you want done, and by how much. Think of it simply as a
chat room between you and the computer. You have to talk to the computer in the
console because it is the only place it will look.

You can open the console for Enemy Territory in one of 2 ways.

1. The first option you have is to press the button with the ~ sign on it. You may have heard it called the ?tilde? key before.

2. Option number 2 is to press the button with the ` sign on it. This is normally located directly under the ESC button above TAB and to the left of 1.

Now that you have the console open, its essential you know how to use it properly. There is no point in trying to tell the computer things it cannot understand now, is there!

All commands in the console begin with a forward slash ( / ). There are a few times when a backslash ( ) is required, but we will not worry about that because it is not very common.

To finish our lesson in the console, we will practise using a command in it.

For example, let us say we want to choose whether or not we can see out gun or not.

You would press ~ or ` to open the console, and then type:

/cg_drawgun (After a space, followed by 1 to see the gun, or 0 to not see it)

That?s it! You?ve mastered the console! In case you need to see any information that has passed through the console too far, just press the up or down arrow keys to scroll up and down.

* My console won?t open!
Tricky, but not unfixable. Open your Enemy Territory folder (also known as directory). This should be found at:

C:/Program Files/Wolfenstein - Enemy Territory

Look for the folder called etmain. Open it. Now look for a folder called profiles. Open this. Now open the folder with the name of the profile you are using at the moment. You should see a file called etconfig - open it using NOTEPAD.
Now, click this link: wolfparser.exe, and download the program. Follow the instructions and ?parse? etconfig. Once this is done, search through the parsed etconfig and search through the binds section for ?toggleconsole?. Make sure the line reads something like: Bind ` (or ~) ?toggleconsole?

Now save the file. Remember, you have to save it under ?All Files? as .cfg NOT .txt. If you save it as a txt file, the official name of the file will be etconfig.cfg.txt. This isn?t a cfg file so the game can?t read it - make sure you have made a proper cfg file!

There you are, you can now open the console!

* Can the console go fullscreen?
Yes. Just hold down ALT when pressing your normal button that opens the console. To close, just press the normal console button again.

* Can I make text from the console go into a text file?
Yes, this is possible. You may wish to clear up the console so you don't put lots of text that you don't need into the text file. The best way to do this is by typing: /clear in the console. The console will empty of all text. Now, to put the text into a text file, type something like this: /condump "inserttextfilenamehere.txt"

You will now see a text file of that name in the mod folder of the server you are playing in, e.g shrub if you are playing on a shrub server. If you aren't connected to a server, it should go into the etmain folder by default.

* I want to control the console remotely, without opening Enemy Territory.
This is called RCon (Remote Control), and is possible for ET and other Quake3 powered games.
Using RCon, you can send commands to the server console without even having
opened ET or have it running. There are two programs that are good for this, ie connecting to server
remotely. The program itself tells you all rcon commands that you can use:

* I can't remember some commands!
Have no fear. Luckily, the console has a feature that tells you all client side commands you can use. Lets start from the beginning:

Console commands always start with their type. For example, sound commands always start /s_ , and graphics commands always start /r_.

Now here comes the trick. Once you have worked out which category a command falls under, you can press the tab button to show you all commands of that type available to you. This feature also comes in useful for completing half written commands. As long as you have typed in a unique starting command, such as /reconn, you can press tab and it will automatically complete the command to /reconnect.
This can cut out a lot of time in some situations.

* What are all the console commands that exist?
The full list is here