CAPTCHA
Image CAPTCHA
Enter the characters shown in the image.
This question is for testing whether or not you are human.
  • Create new account
  • Reset your password

User account menu

Home
The Hyperlogos
Read Everything

Main navigation

  • Home
  • My Resumé
  • blog
  • Howtos
  • Pages
  • Contact
  • Search

Fallout 4 Console Command Collection

Breadcrumb

  • Home
  • Fallout 4 Console Command Collection

I recently discovered that Fallout 4 runs pretty well on Linux using Proton-GE, for typical Bethesda-related values of "well". What this means for the uninitiated is that you still have to deal with dozens to hundreds of quest- and game-breaking bugs even when there are no more updates. This is why it is best to play Bethesda games on PC - you can work around most of the bugs with "console commands", which you ironically can't use on a 'game console'. Like most games that have a console for debugging, command input and the like, you hit the tilde (~) key to open the console. This is a collection of console commands, and explanations for them.

Fallout is 'object oriented'. Things (which things? pretty much all the things) in the game are represented by "objects" of different "classes". Each class of objects has certain properties ("values") and script methods ("functions", also known as "commands") associated with it. Some objects have handy names, like the player. Every object in the game has its own unique id which identifies it. The ID is given as a hexadecimal value, so any leading zeroes can be omitted if you like (and they often are in examples.) The command player.placeatme is really the function placeatme which is attached to objects of class player. You can also execute the methods attached to other objects (like NPCs) by typing <id>.<method>, e.g. "ff0084953.kill".

In order to use some of these commands, you need to know about targets and the prid value. The target can be set by clicking on an object, or by typing "prid <id>", where prid is the command prid, and <id> is the object ID. When examples of commands are given inside <> then they are required. When they are inside [] then they are optional. Objects have both a base id and a reference id. Clicking on a target produces the reference id. Some commands require the base id, which you can find with the help command. Another way to get item IDs is with coc qasmoke which teleports you to a room full of chests with all of the items in the game. You can drop the items on the floor and target them.

You can also look object IDs up on the fandom FO4 wiki. In that case you will need to know the load order for any objects which come from DLCs. The easiest way to see the load order is in the F4SE log. F4SE is the "Fallout 4 Script Enabler" and it is required for many of the best mods to work properly.

 

Object Information

help [item name] [0-4]
Search For Objects
Use Page Up and Page Down to scroll. 0 searches for everything.

help <STRING> 3 - Lists Global Variables that contain specified string
help <"Location"> 4 - Lists exterior and interior cells related to or containing specfied string

  • Example: help "attack dog" 0 would let you know that there's an NPC called 'attack dog' with the ID 000B2BF2. Make sure to use quotes when searching for two or more words.

prid <ref id>
Set Target Reference ID
If you know the reference ID of the object you want to affect, you can type it here instead of clicking.

 

General

getgs <string>
View game settings value

setgs <string>
Set game settings value

get <variable>
Get Global Variable Value

set <variable> to <value>
Set Global Variable

getpv <variable>
Gets private variable value from target

setpv <variable> <value>
Sets private variable on target to value

addkeyword <keyword>
Add Keyword to Target

addperk <perk id>
Adds a perk to the target

additem <id>
Adds an item to the target's inventory

fks
Reset Sound
Fixes problems with looping sounds that you can still hear even when you're far from wherever they were

getScale
Display scale of target

setScale <scale>
Set scale of target

kill
Kills the target. This is a fairly good way to reset essential companions if their AI is stuck in a weird state.

killall
Kill Everyone Nearby
Kills everyone in your immediate area, other than companions and vital characters (they are also killed, but they are "essential".)

markfordelete
Permanently delete targeted object

recycleactor
Reset Character

resurrect
Resurrect Someone
Brings the (targeted) dead back to life. This can have weird effects, and generally the more important a character is to the plot line, the weirder they have the potential to be.

resurrect [object id]
Resurrect All (of id)

setessential <base id> <0 or 1>
Set NPC Essential
Essential NPCs cannot be killed. All of the official available companions are set essential. If they receive enough damage to die, or the console command kill is used, essentials NPCs will go into a slumped state. Non-companion NPCs will recover from this shortly, whether enemies are near or not. Companions will recover in a little while if no enemies are near, otherwise the condition persists until they are stimpacked (or for robots, until a robot repair kit is used on them.)
This command requires the base ID, not the reference ID produced by clicking the target.

setgs fJumpHeightMin <#>
Set Minimum Jump Height
The higher the number, the higher your jump. Set it too high though, and the fall back to earth will kill you. Consider combining with god mode.

setownership
Claim ownership of target

setrestrained <T/F>
Set Target Restrained

setscale <1-10>
Set scale multiplier
Makes you (no target) or your target bigger. The higher the number, the bigger they get.

sexchange [id]
Change a character's gender

tai
Toggle AI
Turns off the artificial intelligence of NPCs, preventing them from doing anything.

tcai
Toggle Combat AI
Turns off combat AI only, preventing NPCs from attacking.

tdetect
Toggle Detection AI
Turns off the AI’s ability to detect you.

tgp or ToggleGamePause
Pauses or un-pauses the game.

tmm 1
Toggle Map Markers
Shows all locations on the map.

unequipall
Unequip all items from the selected NPC.

 

Summoning, Moving, and Removal

CenterOnCell or coc <cell id>
Teleport Player to Specified Cell
Transports the player to the specified "cell". Fallout maps are made up of these cells, which have names and ID numbers. coc qasmoke will teleport you to a room full of boxes with all of the items in the game.

disable
Disables Target
When the game is done with an object or actor, it is usually not removed from the world. Instead, it is only disabled. It then cannot be seen or interacted with.

enable
Enables target
Before an actor or object appears in the game world, it is usually placed somewhere near where it will be used (or in the actual location) and stored in a "disabled" state. When the game wants to use it, it is enabled. Sometimes you can use this command to restore characters who have "died" due to the story line, instead of dying the old fashioned way (due to being killed while not set essential.)

<ref id>.moveto player
moveto player
Teleport specified (or targeted) ref id to player
Transports items, NPCs, companions, etc. to the player.

player.moveto <ref id>
Teleport Player to item
This transports the player to the targeted or named ref id.

player.placeatme <object id> <stack size>
Spawn Item or NPC nearby
Spawns the specified item or NPC close to your current location.
Stack value of "1" required for some items

<ref id>.SpawnDupe
Spawn Duplicate Item
Spawns a duplicate of an object found in the game world at the player's location.

zap
Delete targeted object

 

Doors and Containers

activate
Activate targeted object
Normally used with a switch or button

lock [difficulty]
Lock targeted object
Optional number specifies difficulty, otherwise object default is used

setopenstate <0 or 2>
Set activation state of targeted object
"0" is close and "2" is open

unlock
Unlock Door, Container, or Terminal
Unlocks the targeted container, door or terminal.

 

Camera and Graphics

ToggleFlyCam or tfc
Toggle Flying Camera
Toggles the free camera view.

tfc 1
Same as above, but freezes all animations. Great for screenshots.

ToggleMenus or tm
Toggle HUD
Toggles display of the user interface including the HUD.

csb
Reset blood and damage effects
Like windshield wipers for your power armor, this clears away the current blood splatter effects on your vision.

fov <first-person degrees> <third-person degrees>
Set Field of View
The default is 70, but most widescreen desktop users should use around 90 or even 100. You could measure the number of degrees of your vision which are taken up by your display, but without a certain minimum FOV (70 is not bad) it's hard to keep track of what's happening around you.

 

Time

getcurrenttime
Display current game time

set gamehour to <time>
Set the game hour to indicated value

set timescale to <#>
Set Timescale
Sets the speed of the passage of time. The game is default set at 16. Use 1 for real time progression, and up to 10,000 for days that go by in the blink of an eye.

 

Player

These three commands are used for a multitude of effects:

player.setav [variable] [amount]
Set actor value to specific amount

player.modav [variable] [amount]
Modify an actor value

player.forceav [variable] [amount]
Force an Actor Value

player.setrace [race id]
Change your race
Find race IDs with the help function. Most races are not well supported, and will cause crashes. There are numerous playable race mods which are probably a smarter idea.

showlooksmenu player 1
Show the Character Appearance Screen
This opens the UI to allow you to change your appearance. Center your face on the screen and pause with tgp before you begin.

showspecialmenu
Bring up the menu to change name and assign SPECIAL points (stats)

advancepcskill [advskill]
Advance a point on specific skill branch

player.advlevel
Advance Player Level
Adds one to player level.

player.resethealth
Reset Player Health
Restores the player's health, but does not remove radiation.

player.setlevel <#>
Set Player Level
This command directly sets your player level.

tcl
Toggle Collision
Collision detection is both what prevents you from falling through the floor and walking through walls, and what is used to determine when you're supposed to be falling. Turning it off means that you can walk (or run) in midair, through walls, etc. When you turn it back on, you will fall to the floor, or if you are just slightly stuck in the floor, you will rise above it. Turning it off, closing the console, opening the console, turning it back on, and closing the console again can sometimes get you unstuck.

The tcl command appears to have no effect on objects other than the player, who is affected when no target is selected. The command will appear to "not work" if you have an object targeted.

tdm
Toggle Damage
Stops you from taking damage.

tgm
Toggle God Mode
You do not take damage while in god mode, and you also get unlimited ammunition and AP.

tim
Toggle Immortal Mode
You do take damage in immortal mode, but you cannot die. You can however lose limbs, your head, etc.

 

Inventory

player.showinventory or player.inv
Lists inventory with object IDs

player.additem <item id> <#>
Add Item to Inventory
Adds the specified number of the specified item to your inventory. For example, to add 100 caps to your inventory, type: player.additem 0000000F 100

player.equipitem <object id>
Equip inventory item

 

Factions

player.AddToFaction <faction id> <0 or 1>
Add Player to Faction
Become allied with a faction. Use ‘0’ for ‘friendly’ or ‘1’ for allied.

player.RemoveFromFaction <faction id>
Remove Player from Faction
Removes your allied status with a faction.

setenemy <faction id> <0 or 1>
Become enemies with a faction
Sets your status as an enemy with a faction. Use ‘0’ for neutral or ‘1’ for enemies.

removefromallfactions
Remove From All Factions
Removes allied status from all factions.

setally <faction id> <faction id> <0 or 1> <0 or 1>
Make two factions friendly (0) or allied (1).

setenemy <faction id> <faction id> <0 or 1> <0 or 1>
Make two factions neutral (0) or enemies (1).

 

Settlement

Select the workbench and setav 129157 <number>
Set Settlement Happiness to <number> (0-100)

 

Quest

showquestobjectives or sqo <quest id>
Show objectives in a Quest

completeallobjectives <quest id>
Complete all current objectives in a quest.

completequest <quest id>
Complete Quest

showquesttargets or sqt
Show Quest Targets
Shows the IDs and stages for all current (assigned and uncompleted) quests.

showqueststages <quest id>
Show Quest Stages
Shows the quest stage numbers and completion status for each stage of the specified quest.

setstage <quest id> <stage>
Set Quest Stage
Sets the current stage of the specific quest to the specified stage.
This sometimes will gracefully allow you to advance a quest that isn't moving forwards correctly even though you've met its requirements. Other times, scripts will fail to complete and then other quests (which follow it) will not work correctly. It's better to reload a save, but if you have a substantial time investment it can be worth a try.

resetquest <quest id>
Reset Quest
Resets the specified quest back to the start.

caqs
Complete All Quest Stages
Completes all stages of all quests in the main storyline. Takes a long time, don't do anything while it happens.

 

Companions

getav CA_affinity
View targeted companion's affinity
Maximum is over 1,000

modav CA_affinity <affinity>
Set targeted companion's affinity
Will not take effect until next affinity change

set CA_Event_Hates to 0
set CA_Event_Dislikes to 0

Prevents affinity loss when you do things any companion hates or dislikes.

set CA_Event_Hates to -35
set CA_Event_Dislikes to -15

Returns companion affinity results to normal values.

set Danse_AffinityCondition_PlayerCompletedQuest to 1
Make it possible to romance Danse before completing Blind Betrayal.

 

Console

scof <filename>
Send console output to indicated file

bat [filename]
Execute list of commands from text file

cls
Clear console text

 

Misc

setpv bAllowCaravan 1
setpv bAllowMove 1
setpv bCommandable 1
addkeyword workshopallowcommand
addkeyword workshopallowmove
addkeyword workshopallowcaravan

Makes any (targeted) settler movable, commandable, and able to become provisioners.

 

 

Sources:

https://www.pcgamesn.com/fallout-4/fallout-4-console-commands-and-cheats
https://steamcommunity.com/sharedfiles/filedetails/?id=659619384
https://www.pcgamer.com/fallout-4-cheats-and-console-commands-can-turn-you-into-a-superhero/
https://steamcommunity.com/app/377160/discussions/0/1458455461482173610/#c3216031607487827346
The Neutral Solution (All Factions for Vanilla, Far Harbor, and Nuka World, also Alternatives)
https://fallout.fandom.com/wiki/Fallout_4_console_commands
https://steamcommunity.com/app/377160/discussions/0/496881136920756840
https://steamcommunity.com/app/377160/discussions/0/360670708785304790/

video game
fallout
  • Log in or register to post comments

Footer menu

  • Contact
Powered by Drupal

Copyright © 2025 Martin Espinoza - All rights reserved