Console

From Official Barotrauma Wiki
Revision as of 11:58, 26 May 2017 by BTGamepedia>Telyak (Telyak moved page Console commands to Console Commands: Grammar typo.)
Jump to: navigation, search

The console is a debugging window usable to alter content while in-game; it can be opened or closed by pressing F3. While its main use is to get around bugs, it can also be used to cheat or set up interesting situations.

In multiplayer, only the person hosting the game can use the console.

The console only recognize specific inputs called console commands, which are listed hereafter. Note that the console is not case-sensitive: it doesn't matter if any letter (or all, or any) is in uppercase.

Command Description
control [name] Assume control of a character/creature. The name must be the same as the name of the folder where the characters configuration file is located ("human"/"tigerthresher"/"moloch" etc). Some creatures can attack by pressing the R key. Additionally, the Husk has a fully usable inventory and can interact with the Submarine as if it were a player.
debugdraw Toggles the "debug draw" mode.
disablecrewai Deactivates the crew AI in single player, making the crew inactive unless directly controlled. See "enablecrewai".
editmap, edit Switches to map editing mode.
enablecrewai Activates or reactivates the crew AI in single player. See "disablecrewai".
editwater, water Allows adding water into rooms or removing it by holding the left or right mouse buttons.
fire Allows creation of fires by left clicking.
heal Fully restores the controlled character to full health.
revive Resurrect the controlled character, bringing them back from the dead.
fixitems Sets the condition of all items in the map to 100.0.
freecamera, freecam Stops the camera from being locked to the controlled character and allows it to be moved freely.
gamescreen, game Switches to the game screen.
kick [name] Kicks a player with the specified name from the server (can only by used by the admin of a server).
lightingenabled, lights, light Toggles lighting effects on/off.
loadmap [name] Loads the specified map.
losenabled, los Toggles the line of sight effect on/off. This can be used to reduce lag.
mainmenu, menu Switches to main menu.
oxygen Replenishes oxygen in all rooms to 100.0.
savemap [name] Saves the map that is currently loaded with the specified filename.
spawnitem [itemname] [cursor/inventory] Spawns an item at either the cursor or the inventory, or at a random spawnpoint if parameter 2 is blank.
spawn [creaturename] [near/inside/outside] Spawns a character/creature near, inside or outside the sub (or at a random spawnpoint if parameter 2 is blank). The name must be the same as the name of the folder where the characters configuration file is located ("human"/"tigerthresher"/"moloch" etc).