Console commands

From UnderWiki
Revision as of 17:15, 8 September 2021 by DewiMorgan (talk | contribs) (Create page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Dev Console Instructions

WARNING: If you use the console, it locks your current save file so you can’t receive Achievements with that save file.

You will need to reload from a previous save file and continue from there, in order for achievements to trigger.

Enabling the console

When launching the game from Steam, right click on the game and select “Properties”.

Under the GENERAL tab, click on “SET LAUNCH OPTIONS”, and type in:

-console

and select “OK”. This will permanently allow you to access the console at any point during your game.

Bringing up the console

Once ingame, press the apostrophe key on your keyboard (' on American keyboards, ö for EU) to bring up the console. Note: not the backtick!

Console commands

  • cheats 1 - enable the other console commands, as well as the menu-driven cheat interface.
The menu-driven interface will do almost everything you want, including spawning objects, teleporting you between maps, etc. To open it, exit the console and press Shift + ~ which is the backtick on US keyboards.
From there, you’ll see a handy set of shortcuts. The most important one is “End”, which will always bring you to the “end” of a level / area, so you can quickly bypass levels.
  • commands - List all available console commands. Some interesting ones are listed below.
  • loc - display your current coordinates, eg the beginning of the Challenge of Ishtass is (314.3, 43.2, 113.4)
  • teleport X Y Z - Teleport within a level, to the coordinates that you put in place of X, Y, and Z. Note that commas are not needed. So if you are in the Challenge of Ishtass, teleport 314.3 43.2 113.4 will send you to the start of the level. If you’re in another level, those coordinates are likely to be off the map.
  • teleport "Board" marcaul_MASTER - There’s another version of the teleport command that will send you to other maps, but I don’t know the syntax, and you’d need to know the name of the levels. For this, you’re probably just better off using the graphical cheat interface instead.
  • kill - Instantly kill whatever your cursor is over.
  • kill all - Instantly kill everything other than yourself.
  • death - Instantly kill yourself.
  • save - Save your game.
  • iddqd - Invincibility: a DOOM reference :)
  • speedometer [on/off] - Shows a speedometer on screen. (doesn’t work - command no longer exists?)
  • dotbunny - Bestow upon the player the one sword. (doesn’t work - tries to create an object pr_sword_bunny which does not exist)
  • basketball - Makes some basketballs. For physics testing, sure.
  • smokeybear - Extinguish all active combustibles.