Company of Heroes Console Commands: Codes for PC
- PC Add -dev to the game's Steam launch options, then press Ctrl+Shift+~ in a single-player match to open the console and type a command.
Published by Andrew B.
No cheats match that filter.
Money and resources
| Cheat | Command | Effect |
|---|---|---|
| Add manpower | PCPlayer_SetResource(Game_GetLocalPlayer(),RT_Manpower, 9999) | Add manpower; replace 9999 with any amount |
| Add munitions | PCPlayer_SetResource(Game_GetLocalPlayer(),RT_Munition, 9999) | Add munitions; replace 9999 with any amount |
| Add fuel | PCPlayer_SetResource(Game_GetLocalPlayer(),RT_Fuel, 9999) | Add fuel; replace 9999 with any amount |
| Raise population cap | PCPlayer_SetPopCapOverride(Game_GetLocalPlayer(), 1000) | Raise your population cap; replace 1000 with any amount |
Map and vision
| Cheat | Command | Effect |
|---|---|---|
| Toggle fog of war | PCFOW_Toggle | Turn fog of war on or off |
| Reveal map | PCFOW_RevealAll | Reveal the whole map |
Debug and testing
| Cheat | Command | Effect |
|---|---|---|
| Big head mode on | PCee_bigheadmode(1) | Turn on big head mode |
| Big head mode off | PCee_bigheadmode(0) | Turn off big head mode |
| Set game speed | PCsetsimrate(#) | Adjust the game's simulation speed; CheatBook gives 10 as normal speed |
| Show frame rate | PCstatgraph_channel("fps") | Display the current frame rate; type statgraph() first |
| Hide taskbar | PCtaskbar_hide | Hide the Windows taskbar |
| Show taskbar | PCtaskbar_show | Show the Windows taskbar again |
| Restart match | PCrestart | Restart the current match |
| Quit match | PCabortgame | Quit the current match |
| Enable statgraph | PCstatgraph() | Turn on the stat graph that the frame rate command needs |
A code here did not work? Tell us and it gets rechecked. Report a code
How to enter cheats in Company of Heroes
PC
- Right-click Company of Heroes in Steam, open Properties, and add -dev to the launch options.
- Start a single-player skirmish or campaign mission.
- Press Ctrl+Shift+~ to open the console.
- Type the command exactly as shown and press Enter.
How to enable developer mode in Company of Heroes
- In Steam, open the game's Properties and add -dev to the launch options.
- Without Steam, make a shortcut to RelicCOH.exe, add a space and -dev at the end of the Target field, apply it and launch the game from that shortcut.
- If a resource command answers with an error calling Game_GetLocalPlayer a nil value, -dev is not active yet.
Steam Community: Company of Heroes discussion, Cheat codes not working
Can you use these cheats in multiplayer?
These are for offline matches only. A poster in a coh2.org modding thread says commands that use Game_GetLocalPlayer(), which covers every resource and population command on this page, cause a sync error in multiplayer. The same thread says to open the console in a match that is not online. COH2.org: How to open console commands on Company of Heroes
Compatibility notes
Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.
- Steam: Legacy Edition Steam's store page says the Legacy Edition also gives you the updated version, listed in your library simply as Company of Heroes, and tells you to use that one for online play. Steam: Company of Heroes - Legacy Edition store page
- Without -dev In a Steam discussion on the current Company of Heroes app, pasting the resource commands without -dev gave an error calling Game_GetLocalPlayer a nil value. Adding -dev to the Steam launch options, or after the path in a RelicCOH.exe shortcut, fixed it. Steam Community: Company of Heroes discussion, Cheat codes not working
- Non-US keyboards The Steam guide gives Ctrl+Shift+` for US keyboards, Ctrl+Shift+ö for German keyboards and Ctrl+Shift+Ñ or Ctrl+Shift+¬ for Spanish ones. On some layouts Ctrl+Shift with ' or @ opens it instead. Steam Community Guide: How to use console commands on Company of Heroes
- Frame rate and speed commands CheatBook says statgraph_channel("fps") only works after statgraph() has turned the stat graph on, and that 10 is the normal speed for setsimrate. CheatBook: Company of Heroes cheats
FAQ
Is there a resource cheat in Company of Heroes?
Yes. Player_SetResource commands add manpower, munitions or fuel, and you can swap in any amount you want.
How do you open the console in Company of Heroes?
Add -dev to the game's Steam launch options, start a single-player match, then press Ctrl+Shift+~.
Do Company of Heroes console commands work in multiplayer?
No. They only work in single-player and can desync or ruin online matches.
How do you reveal the whole map in Company of Heroes?
Type FOW_RevealAll to reveal the map, or FOW_Toggle to switch fog of war on and off.
How do you raise the population cap in Company of Heroes?
Type Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000), swapping in whatever cap number you want.
