This article's documentation is for the "GoldSrc" engine. Click here for more information.
This article's documentation is for anything that uses the Source engine. Click here for more information.
This article's documentation is for Source 2. Click here for more information.

echo

From Valve Developer Community
Jump to: navigation, search

echo is a console command available in all GoldSrc GoldSrc, Source Source, and Source 2 Source 2 games. It is used to print text into the console window. When used in tandem with scripts, the echo command can prove to be very useful in cases where you will need to debug problems.

Syntax

 echo <text>

Examples

 echo Hello world

Special use

When appended to a key bound to a + statement (but only directly), the key code will be appended

 bind shift “+duck; echo key :”

key : 79 will be seen in the console twice; once on press, once on release.

Stub

This article or section is a stub. You can help by adding to it.