Company of Heroes 2 Console Commands: Codes for PC
- PC Add -dev to the Steam launch options, start a match, press Ctrl + Shift + ~ and paste a command.
Published by Andrew B.
No cheats match that filter.
Resources
| Cheat | Command | Effect |
|---|---|---|
| Set manpower | PCPlayer_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999) | Sets your manpower to 9,999; change the number for a different amount |
| Set munitions | PCPlayer_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999) | Sets your munitions to 9,999; note the spelling RT_Munition |
| Set fuel | PCPlayer_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999) | Sets your fuel to 9,999 |
| Command points | PCPlayer_SetResource(Game_GetLocalPlayer(), RT_Command, 5) | Gives 5 command points; set only as many as your abilities need |
| Raise population cap | PCPlayer_SetPopCapOverride(Game_GetLocalPlayer(), 1000) | Raises your population cap to 1,000 |
Resource income
| Cheat | Command | Effect |
|---|---|---|
| Double manpower income | PCModify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Manpower, 2) | Multiplies your manpower per minute by 2 |
| Double munitions income | PCModify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Munition, 2) | Multiplies your munitions per minute by 2 |
| Double fuel income | PCModify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Fuel, 2) | Multiplies your fuel per minute by 2 |
Map and vision
| Cheat | Command | Effect |
|---|---|---|
| Reveal the map | PCFOW_RevealAll | Toggles the fog of war, showing the whole map and every unit |
AI control
| Cheat | Command | Effect |
|---|---|---|
| Switch off all AI | PCAI_EnableAll(false) | Disables every AI player |
| Switch AI back on | PCAI_EnableAll(true) | Enables every AI player again |
| Let the AI play for you | PCMisc_AIControlLocalPlayer() | Hands your side over to the AI |
Developer mode
| Cheat | Command | Effect |
|---|---|---|
| Enable the console | PC-dev | Steam launch option that turns on developer mode and the SCAR console |
A code here did not work? Tell us and it gets rechecked. Report a code
How to enter cheats in Company of Heroes 2
PC
- In your Steam library, right-click Company of Heroes 2, open Properties and add -dev to the launch options.
- Start a campaign mission or a custom game against the AI.
- Once the map loads, press Ctrl + Shift + ~ to open the SCAR console; some guides use Alt + Shift + ~.
- Type or paste a command exactly and press Enter.
How to enable developer mode in Company of Heroes 2
- In your Steam library, right-click Company of Heroes 2 and choose Properties.
- Under General, set the launch options to -dev and close the window.
- Start the game and load a campaign mission or a custom game against the AI.
- Press Ctrl + Shift + ~ (or Alt + Shift + ~) to open the SCAR console.
- Delete -dev from the launch options when you want to play ranked again.
Can you use these cheats in multiplayer?
No. Starting with -dev disables automatching, because only other players running -dev can join you, and a reply in the Steam thread says the commands cause a sync error in multiplayer. They are meant for the campaign and custom games against the AI. Steam Community: Company of Heroes 2 SCAR console resources discussion
Compatibility notes
Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.
- Console key The Steam guide opens the console with Ctrl + Shift + ~, while the Steam discussion and GamingPH both use Alt + Shift + ~. Steam Community: Company of Heroes 2 SCAR console resources discussion
- Munitions spelling The first post in the Steam thread used RT_Munitions; two later replies correct it to RT_Munition, which is the spelling the Steam guide uses too. Steam Community: Company of Heroes 2 SCAR console resources discussion
- Player number form GamingPH writes the commands with World_GetPlayerAt(1) instead of Game_GetLocalPlayer() and uses 99999. The Steam thread says World_GetPlayerAt with a number from 1 to 8 targets other players, AI included. GamingPH: Company of Heroes 2 resources and population cap without a trainer
- Steam edition GamingPH says the -dev method works on the Steam edition of the game and only in single player and skirmish. GamingPH: Company of Heroes 2 resources and population cap without a trainer
FAQ
How do you open the console in Company of Heroes 2?
Add -dev to the Steam launch options, start a match and press Ctrl + Shift + ~. Some guides give Alt + Shift + ~ instead.
Is there a resource cheat in Company of Heroes 2?
Yes. Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999) sets your manpower, and the same command with RT_Munition or RT_Fuel sets munitions and fuel.
Can you use console commands in Company of Heroes 2 multiplayer?
No. With -dev you cannot automatch, and the Steam guide says the commands either do not work online or cause a desync that ruins the match.
