Company of Heroes 2

Company of Heroes 2

171 ratings
COH2 Console cheats/commands
By RubMyRubberDucky
Helping you cheat your way through those pesky campgaign and AI skirmishes since well, since you've found this guide...
   
Award
Favorite
Favorited
Unfavorite
Description
So you've decided that you need help getting through a certain mission, or you just want to cheat in order to kill time or have more fun. Well you've come to the right place to do just that.

In this guide I'll provide the how-to and console commands that'll give you the edge in your next battle in COH2.
Cheats
To begin, the codes provided here are cheats, and will give you more resources and advantages in your next match. However, these cheats do not quite work in multiplayer, as they will either not be enabled at all, or cause desync and ruin the match for both parties.

First of all, to begin using these commands, you need to set a launch parameter for the next time your game is launched. To do this navigate to your COH2 game in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option to set launch parameters. Open this and when prompted enter in the following code:

-dev

Once done this press Ok/Save and you're ready to launch the game.

Following this, load up a new or saved campaign mission or whatever you look to cheat in, and open the console by pressing Control-Shift-Tilde (Ctrl+Shift+`/~)

This will open up your console, and now you can either enter the codes manually or copy/paste them in. Here are the codes:

FOW_RevealAll --- Toggles the fog of war/ Allows you to see whole map and units.
Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999) - Adds 9999 Manpower

Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999) - Adds 9999 Munition

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999) - Adds 9999 Fuel

Player_SetResource(Game_GetLocalPlayer(), RT_Command, 5) - Adds 5 Command points
(Beware, add only the amount you need for all abilities, so it's best that you count them first, then you can paste this command in and change the value from 5 to whatever amount you need)

Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000) - Makes your pop-cap larger



There are other cheats for this game, but the basics are these.

The Following is a link to a similar guide for the first Company of Heros, it's the same cheat commands and you may use it as a reference. It also provides addition codes to use in the console.

https://steamcommunity.com/sharedfiles/filedetails/?id=299979247


Have fun cheating!

48 Comments
unturned gamer Feb 4 @ 8:53am 
Um... nevermind, found it out. Don't know how I got it to work tho...
unturned gamer Feb 4 @ 8:50am 
It says nil value, what do?
[†] Generalseal Dec 8, 2024 @ 2:12am 
adding -dev does nothing same thing for 2 and 3
luansergiovc1 Feb 19, 2024 @ 5:14am 
Command to turn the player into AI during the match:

To let AI take over local player:
Misc_AIControlLocalPlayer()

To enable player AI:
AI_Enable(Game_GetLocalPlayer(), true)

To enable all AI players:
AI_EnableAll(true)

To disable player AI:
AI_Enable(Game_GetLocalPlayer(), false)

To disable all AI players:
AI_EnableAll(false)

To set the difficulty level of this AI player:
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Easy)
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Standard)
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Hard)
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Hardest)

Note: The player AI is set to Hard difficulty by default.
Note: The player AI will not get boosts on: resources, stats and modifiers.

Source: https://scardoc.coh.fi/function_list.htm
Best of the beast Aug 30, 2023 @ 5:32am 
it works just make this (cseffect thank you)

I think he may not be able to use CTRL + SHIFT + TILDE (look for the ~ symbol) command.
so let try in this way

1. Go to the steam folder which you install game
for example
"C:\XXX\Steam\steamapps\common\Company of Heroes"

2. Find "RelicCOH2" (Configuration setting)

3. Open it with notepad

4. Under ; Console
consoleKey = CONTROL+SHIFT+Grave

Change to consoleKey = CONTROL+SHIFT+1

5. then in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option
set launch -dev

6. During gameplay press CONTROL+SHIFT+1

I think now you can use a code you want
고기는나의힘 May 11, 2023 @ 5:59am 
It doesnt work
Linrox Mar 6, 2023 @ 10:11pm 
These cheats DON"T WORK with COH Tales of Valor
AsgardiaN Dec 29, 2022 @ 4:57am 
Hi all, to activate the cheats in Steam you shall go to the properties in the steam at the general find the "lunch options" and write -dev. All set up your cheats are ready to go.
wagner_saita Dec 18, 2022 @ 6:14pm 
these codes for CHO 2 do not work? is there any way to activate it?
Hauptman_1936-1945 Sep 15, 2022 @ 11:03am 
Doesn't work