Enable the developer console:
Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".
Press ` or ~ on your keyboard.
Enter a command and hit ENTER on your keyboard to run it!
Commands List
Command | Description | More | Syntax |
---|---|---|---|
demo_info | This command prints to console information about the demo that is currently playing. |
Examples, Generator & More | demo_info
|
demo_recordcommands | This command records any commands typed into the console and saves them in a .dem file. |
Examples, Generator & More | demo_recordcommands
<0 / 1>
|
demoui | This command will toggle the visibility of the demo player UI. With the demo UI open, you can speed up and slow down demo playerback, skip rounds, etc. |
Examples, Generator & More | demoui
|
dev_add_onground_on_spawn | Determines if the on-ground status of players should be altered upon spawning. This command is used for debugging purposes to avoid issues related to players' ground collision status on spawn. |
Examples, Generator & More | dev_add_onground_on_spawn
<0 / 1>
|
differences | This command will print a list of all game convars that are not set to their default value to the console. |
Examples, Generator & More | differences
|
disconnect | This command will disconnect you from your current game and return you to the home screen (including offline games with bots, scenarios, etc). |
Examples, Generator & More | disconnect
|
display_game_events | This command, if enabled, will print the name of each event that is fired in your game. E.g. when a bomb is dropped, "bomb_dropped" will be printed to console, when a player footstep noise is made, "player_footstep" will be printed to console. |
Examples, Generator & More | display_game_events
|
dlight_debug | This command will spawn a dynamic light at the current location of your crosshair. Useful for debugging lighting issues. |
Examples, Generator & More | dlight_debug
|
dm_togglerandomweapons | This command will toggle whether or not you spawn with random weapons after dying in the deathmatch gamemode. This effect is applied to all players. |
Examples, Generator & More | dm_togglerandomweapons
|
dota_enable_spatial_audio | Enables or disables spatial audio in Dota 2, enhancing the 3D sound experience depending on the game environment. |
Examples, Generator & More | dota_enable_spatial_audio
<0 / 1>
|
dota_spatial_audio_mix | Adjusts the balance between spatial and non-spatial audio elements in Dota 2, enhancing the overall game sound experience. |
Examples, Generator & More | dota_spatial_audio_mix
<0 / 1>
|
drawcross | This command will spawn a cross at the given X, Y and Z coordinates. Use the cl_showpos 1 command to find out your current coordinates (it is shown as "pos: X Y Z", where X Y and Z are your coordinates). |
Examples, Generator & More | drawcross
<X><Y><Z>
|
drawline | This command will draw a line between two given sets of coordinates. |
Examples, Generator & More | drawline
<X Y Z><X Y Z>
|
dsp_dist_max | dsp_dist_max
|
||
dsp_dist_min | dsp_dist_min
|
||
dsp_off | dsp_off
|
||
dsp_volume | dsp_volume
|
||
dump_panorama_css_properties | This command produces a detailed list of all properties from the Panorama UI that use CSS (a coding language). |
Examples, Generator & More | dump_panorama_css_properties
|
dump_panorama_events | This command is used to show all of the event types used in the Panorama, and how they are triggered. Something for those of you who understand code! |
Examples, Generator & More | dump_panorama_events
|
echo | This command will print a specified message to the console. Commonly used server-side to print a message to the console of all players (if you are in a private game, this command is a little useless). |
Examples, Generator & More | echo
<Text>
|