XCOM: Enemy Unknown

XCOM: Enemy Unknown

67 ratings
Console command Guide
By Onyx
This is a tutorial on how to implement your own custom commands into the game.
Please read the ENTIRE guide as to not miss critical information (such as what key to hold to make your commands work)
   
Award
Favorite
Favorited
Unfavorite
Commands
List of my commands
.Bindings=(Name="U", Command="GiveResource Engineers 50", Alt=True)
.Bindings=(Name="Q", Command="GiveResource Scientists 50", Alt=True) -- gives 50 scientists
.Bindings=(Name="W", Command="Levelupbarracks 7", Alt=True) -- max lv barracks and soldiers lv!
.Bindings=(Name="E", Command="SetStrategyFacilitiesSuperSpree on", Alt=True) -fast research
.Bindings=(Name="R", Command="GiveItem WeaponFragment 1000", Alt=True) gives 1000 fragment
.Bindings=(Name="T", Command="GiveItem Meld 1000", Alt=True) same
.Bindings=(Name="Y", Command="GiveItem WeaponFragment 1000", Alt=True)
.Bindings=(Name="I", Command="GiveItem AlienAlloys 1000", Alt=True)
.Bindings=(Name="N", Command="GiveItem Elerium115 1000", Alt=True)
.Bindings=(Name="M", Command="GiveCash 1000", Alt=True)
.Bindings=(Name="O", Command="GiveItem SectoidCorpse 10", Alt=True)
.Bindings=(Name="P", Command="GiveItem SectoidCommanderCorpse 10", Alt=True)
.Bindings=(Name="F", Command="GiveItem MutonCorpse 10", Alt=True)
.Bindings=(Name="G", Command="GiveItem MutonEliteCorpse 10", Alt=True)
.Bindings=(Name="H", Command="GiveItem BerserkerCorpse 10", Alt=True)
.Bindings=(Name="J", Command="GiveItem CyberdiscCorpse 10", Alt=True)
.Bindings=(Name="K", Command="GiveItem EtherealCorpse 10", Alt=True)
.Bindings=(Name="L", Command="GiveItem CryssalidCorpse 10", Alt=True)
.Bindings=(Name="Z", Command="GiveItem SectopodCorpse 10", Alt=True)
.Bindings=(Name="X", Command="GiveItem DroneCorpse 10", Alt=True)
.Bindings=(Name="C", Command="GiveItem FloaterCorpse 10", Alt=True)
.Bindings=(Name="V", Command="GiveItem FloaterHeavyCorpse 10", Alt=True)
.Bindings=(Name="B", Command="GiveItem ThinManCorpse 10", Alt=True)
.Bindings=(Name="F", Command="LowerPanic", Alt=True)
How to add your own console commands
Console commands can also be assigned directly to one or more keys. To do this, open the file DefaultInput.ini located in the XEW\XComGame\Config folder. I suggest you make a back-up first, before editing. To issue a key bind, insert a line that looks like this:

.Bindings=(Name="U", Command="GiveResource Engineers 50", Alt=True)

In this case, the assigned key is U and the issued command will add 50 engineers to your base.

The last parameter (Alt=True), means that you have to press the Alt key in conjunction with your assigned key to perform the order. This is recommended as to not accidentally enable cheats. If you don't want the Alt key, just remove the Alt=True parameter and you will be able to activate the order just with your assigned key.

I reccomend putting the new binding directly after this part of the .ini

[Engine.PlayerInput]
bEnableMouseSmoothing=false
;----------------------------------------------------------------------------------------
; GENERAL PC bindings - Used in evey menu
; IMPORTANT: primary and secondary keys must reference the same command in order to be considered the same Action
;----------------------------------------------------------------------------------------
; Universal, don't mess with me




Here are some links to thee sources I used to compile this guide. I've basically just condensed it here. If you're having issues, go and have a look at the links.

http://www.gamefaqs.com/boards/728011-xcom-enemy-within/67821799
http://keops.fr.yuku.com/topic/250/XCOM-Enemy-Unknown-Developer-Console#.UpDe5XUQEWM
http://forums.nexusmods.com/index.php?/topic/839767-keybind-commands/

Feel free to comment and ask questions if you don't understand. You should read the comments already there though, as it is quite likely I have already answered your question.


Thanks for reading, hope this guide was helpful and I hope you have a great ♥♥♥♥♥♥♥ day
26 Comments
|Milo| 15 Oct @ 9:44am 
Does it still work? I'm trying to use it, but it doesn't work... I've already tried "-console" in the launch options and the console didn't appear in the game either...
The Bro Stump 5 May @ 8:22am 
Anyone have an idea what the Item code for UFO power source?
stimoney 23 Jul, 2024 @ 5:41pm 
Is it possible to group commands under a single keystroke?
Onyx  [author] 17 Jul, 2022 @ 5:08am 
No worries, glad it was helpful for you mate
greggorylovecraft 17 Jul, 2022 @ 2:56am 
Just wanted to give you a big thanks for posting this guide. I'm currently playing through a LW game and I was getting unbelievably frustrated with trying to get Muton Elite corpses for the autopsy and Tactical Rigging.

Total of 25 corpses just for those 2 and I was only seeing 1-3 of them every 5 missions or so. I averaged it out and it was going to be around 60+ missions to get both of those done. That's not even counting on the fact that I didn't want to kill them all because I need to capture some to be able to make Plasma Heavy weapons for my soldiers.

Again, thank you very much for the help bud. :steamthumbsup:
Onyx  [author] 12 May, 2022 @ 10:52am 
I don't think there's a command to lower panic. All the ones that I found are in the guide and i haven't seen that one before
scottschaller 6 May, 2022 @ 10:18pm 
What is the command to lower the panic for each country? And where do you put the command at. I know it's something like this .Bindings=(Name="Q", Command="Lowerpanic", Alt=True) I tried it in different places I'm not really sure if this command really works. Does anyone have an idea?
Onyx  [author] 19 Mar, 2021 @ 3:42am 
Change the assigned key and it should work fine
JvS 21 Jan, 2021 @ 5:18am 
Everything works fine, but one binding isn't, alt+W, barracks are not expanded and soldiers alre still at their ranks. I should change assigned key or I've missed something?
crazyboi 5 May, 2020 @ 2:13pm 
oh. I'm dumb. thanks