Console Commands Xcom Enemy Within

XCOM: Enemy Within is a masterpiece, but it has bugs. The console is often the only fix.

  • Bug: "My soldier fell through the world/Teleported into a wall."

  • Bug: "The door to the Alien Base won't open."

  • Bug: "I accidentally sold all my Elerium and cannot build the final item."


  • These are risky – best use ForceCompleteMission only if you’re stuck. console commands xcom enemy within

    ForceExitToStrategy – Ends mission immediately (even without evac), mostly works but may skip rewards.
    XComHQ_ReturnFromMission – Forces return to base after current mission ends.


    Using console commands can break achievements, corrupt saves, or disable Ironman mode progress.
    Always save manually before experimenting.


    Even with this guide, you will run into issues. Here’s the troubleshooting checklist.

    Problem: The Tilde key does nothing.

    Problem: I typed GiveResource 1 999 but nothing happened.

    Problem: The mission won't end after KillAliens.

    Problem: I lost all my achievements.

    Problem: My soldier teleported underground. XCOM: Enemy Within is a masterpiece, but it has bugs


    | Command | Effect | | :--- | :--- | | LevelUpBarracks 7 | Promotes every soldier in your barracks to the rank of Colonel (Rank 7). | | GivePerk [PerkName] | Gives a specific perk to the currently selected soldier. (More on this below). | | SetSoldierStat eStat_Will 999 1 | Sets the selected soldier's Will to 999. The "1" means "active soldier." | | SetSoldierStat eStat_Offense 150 1 | Sets Aim to 150. Never miss a shot again (except against Hardened targets). | | RemovePerk [PerkName] | Removes a perk if you messed up. |

    These are used during ground missions. Be careful—they can break scripted events.

    | Command | Effect | | :--- | :--- | | PowerUp | The ultimate cheat. God mode + unlimited ammo + one-hit kills for your entire squad. | | KillAliens | Instantly kills every enemy currently active on the map. (Does not work on bosses like Sectopods or the final Ethereal in some cases). | | KillAllAliens | A more aggressive version of the above. Useful for bugged missions. | | Heal | Fully heals the currently selected soldier. | | RestartMission | Restarts the current tactical mission from the beginning. | | SkipAI | Toggles AI on/off. Aliens will stand still and not react. | | ToggleGodMode | God mode for the entire squad. | | TeleportToCursor | Select a soldier, look at a location on the ground, type this. The soldier teleports instantly. This breaks pathfinding—use with caution. |