BTGamepedia>Telyak |
|
(35 intermediate revisions by 15 users not shown) |
Line 1: |
Line 1: |
| {{Source|https://github.com/Regalis11/Barotrauma/blob/master/Barotrauma/BarotraumaShared/Source/DebugConsole.cs}}
| | #redirect [[Console Commands]] |
| {{Stub|There are countless commands not yet documented. See the GitHub page above for a list.}}
| |
| 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.
| |
| | |
| {| class="wikitable"
| |
| !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"/"[[Tiger Thresher|tigerthresher]]"/"[[Moloch|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.
| |
| |-
| |
| |fixitems
| |
| |Sets the condition of all items in the map to 100.0.
| |
| |-
| |
| |fixwalls
| |
| |Fixes all damaged or broken walls.
| |
| |-
| |
| |fire
| |
| |Allows creation of fires by left clicking.
| |
| |-
| |
| |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.
| |
| |-
| |
| |godmode
| |
| |Makes the submarine invulnerable.
| |
| |-
| |
| |heal
| |
| |Fully restores the specified character (or the controlled character if none is specified) to full health.
| |
| |-
| |
| |kick [name]
| |
| |Kicks a player with the specified name from the server (can only by used by the admin of a server).
| |
| |-
| |
| |killcreatures
| |
| |Instantly kills all creatures in the map.
| |
| |-
| |
| |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.
| |
| |-
| |
| |revive [name]
| |
| |Resurrect the specified character (or the controlled character if none is specified), bringing them back from the dead.
| |
| |-
| |
| |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"/"[[Tiger Thresher|tigerthresher]]"/"[[Moloch|moloch]]" etc).
| |
| |-
| |
| |teleport [charactername]
| |
| |Teleports the specified character (or the currently controlled character if parameter 1 is blank) to the position of the cursor.
| |
| |}
| |