Company of Heroes

Company of Heroes

View Stats:
Icarus Nov 23, 2016 @ 5:55pm
Console commands for skirmish and such. (Not a request, i know them all, but if you need them look at this chat).
if there are commands that you can use during single player skirmish feel free to put them them down below.
Last edited by Icarus; Aug 22, 2017 @ 3:39pm
< >
Showing 1-14 of 14 comments
Repulsive Bushman Nov 25, 2016 @ 5:39am 
Make sure to run the game in -dev, first. You can open console by pressing Shift + Control + Tilde(~, the button before 1)

These are the ones I have personally listed:

1. Make the popcap larger: Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

2. Give yourself 9,999 Fuel: Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)

2a. Give yourself the maximum amount of Command Points: Player_SetResource(Game_GetLocalPlayer(), RT_Command, 20)

2b. 9,999 Manpower: Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)

2c. 9,999 Munitions: Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)


(NOTE: I'm not sure if the AI gets affected by the resource commands, though. I haven't really tested it.)


3. AI will control you: Scar_DoString("Misc_AIControlLocalPlayer()")

4. Reveal the map(AI gets affected by this): FOW_RevealAll

5. Hide the UI so you can take clear screenshots: taskbar_hide

6. Make the UI re-appear: taskbar_show

7. setsimrate(x): Sets the game speed, where X represents a number (i.e. setsimrate (3)) and the default speed is 10.

8. ee_bigheadmode(1/0) – Toggles the Big Head mode on (1) or off (0) if you want your infantry or units to look ridiculous.

9. restart – Restarts the game

10. abort – Aborts the game

11. statgraph() – Enables the "statgraph_channel" codes

12. statgraph_channel("fps") – Displays how many frames-per-second your game is running at, useful if you need to optimize your performance.(Steam also has an FPS counter you can enable)

13. Message_Hide – Hides all incoming messages

14. Message_Show – Shows all incoming messages




Enjoy. Also, these don't work with other players, even if they run -dev, as you'll just get a sync error if you try.

Last edited by Repulsive Bushman; Nov 25, 2016 @ 5:43am
Icarus Nov 25, 2016 @ 10:00am 
Thank you very much Repulsive Bushman.
Repulsive Bushman Nov 25, 2016 @ 10:45am 
Glad to be of use.
Icarus Nov 26, 2016 @ 8:26am 
Originally posted by Repulsive Bushman:
Make sure to run the game in -dev, first. You can open console by pressing Shift + Control + Tilde(~, the button before 1)

These are the ones I have personally listed:

1. Make the popcap larger: Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

2. Give yourself 9,999 Fuel: Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)

2a. Give yourself the maximum amount of Command Points: Player_SetResource(Game_GetLocalPlayer(), RT_Command, 20)

2b. 9,999 Manpower: Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)

2c. 9,999 Munitions: Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)


(NOTE: I'm not sure if the AI gets affected by the resource commands, though. I haven't really tested it.)


3. AI will control you: Scar_DoString("Misc_AIControlLocalPlayer()")

4. Reveal the map(AI gets affected by this): FOW_RevealAll

5. Hide the UI so you can take clear screenshots: taskbar_hide

6. Make the UI re-appear: taskbar_show

7. setsimrate(x): Sets the game speed, where X represents a number (i.e. setsimrate (3)) and the default speed is 10.

8. ee_bigheadmode(1/0) – Toggles the Big Head mode on (1) or off (0) if you want your infantry or units to look ridiculous.

9. restart – Restarts the game

10. abort – Aborts the game

11. statgraph() – Enables the "statgraph_channel" codes

12. statgraph_channel("fps") – Displays how many frames-per-second your game is running at, useful if you need to optimize your performance.(Steam also has an FPS counter you can enable)

13. Message_Hide – Hides all incoming messages

14. Message_Show – Shows all incoming messages




Enjoy. Also, these don't work with other players, even if they run -dev, as you'll just get a sync error if you try.
I have a theory that the supplies command and pop. command does not effect the AI because if you look at the command it says Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999) ----------->player, so therfore it most likely only effects the player.
Repulsive Bushman Nov 26, 2016 @ 9:17am 
This is true. However, when I used to use the commands to test any changes I did to my mod, I believe the AI was also affected by them as well. I'm not 100% sure though, as I could be confusing that with the custom game mode I made shortly after(Instead of having to keep entering the commands every time, I just made a game mode which does it for me which also affects the computer)
Icarus Nov 26, 2016 @ 9:47am 
ah okay good to know.
Icarus Dec 2, 2016 @ 2:47pm 
Bushman is there a way to disable the FOW_RevealAll
I don't have anything written down. I'll experiment and see what I get.
Icarus Dec 2, 2016 @ 4:24pm 
Okay thanks
I found a "FOW_Toggle". I don't know if it actually renables FoW, but I know it works in removing it.

I tried "FOW_RevealAll" shortly before that, and I think it basically overrides FOW_Toggle. I will do more testing later.
For popcap, you can also use Player_SetPopCapOverride(Game_GetLocalPlayer(), -1) to completely disable popcap altogether.



I have another code that might be able to spawn units, but again, I need to test it.
Last edited by Repulsive Bushman; Dec 4, 2016 @ 3:20am
Icarus Dec 4, 2016 @ 8:46am 
Thank you for all the help bushman.
Deadman Aug 18, 2017 @ 2:51am 
Is there any command for kind of instant build?
Darllock Aug 22, 2017 @ 11:26am 
{LINK REMOVED} this is a good free trainer site. mrantifun dot net :)
Last edited by Darllock; Aug 22, 2017 @ 11:27am
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Nov 23, 2016 @ 5:55pm
Posts: 14