Company of Heroes Console Commands: Codes for PC

Published by

Money and resources

CheatCommandEffect
Add manpowerPCPlayer_SetResource(Game_GetLocalPlayer(),RT_Manpower, 9999)Add manpower; replace 9999 with any amount
Add munitionsPCPlayer_SetResource(Game_GetLocalPlayer(),RT_Munition, 9999)Add munitions; replace 9999 with any amount
Add fuelPCPlayer_SetResource(Game_GetLocalPlayer(),RT_Fuel, 9999)Add fuel; replace 9999 with any amount
Raise population capPCPlayer_SetPopCapOverride(Game_GetLocalPlayer(), 1000)Raise your population cap; replace 1000 with any amount

Map and vision

CheatCommandEffect
Toggle fog of warPCFOW_ToggleTurn fog of war on or off
Reveal mapPCFOW_RevealAllReveal the whole map

Debug and testing

CheatCommandEffect
Big head mode onPCee_bigheadmode(1)Turn on big head mode
Big head mode offPCee_bigheadmode(0)Turn off big head mode
Set game speedPCsetsimrate(#)Adjust the game's simulation speed; CheatBook gives 10 as normal speed
Show frame ratePCstatgraph_channel("fps")Display the current frame rate; type statgraph() first
Hide taskbarPCtaskbar_hideHide the Windows taskbar
Show taskbarPCtaskbar_showShow the Windows taskbar again
Restart matchPCrestartRestart the current match
Quit matchPCabortgameQuit the current match
Enable statgraphPCstatgraph()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

  1. Right-click Company of Heroes in Steam, open Properties, and add -dev to the launch options.
  2. Start a single-player skirmish or campaign mission.
  3. Press Ctrl+Shift+~ to open the console.
  4. Type the command exactly as shown and press Enter.

How to enable developer mode in Company of Heroes

  1. In Steam, open the game's Properties and add -dev to the launch options.
  2. 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.
  3. 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.

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.

Part of

References: Steam Community Guide: How to use console commands on Company of Heroes; CheatBook: Company of Heroes cheats; Steam Community: Company of Heroes discussion, Cheat codes not working; COH2.org: How to open console commands on Company of Heroes; Steam: Company of Heroes - Legacy Edition store page.