Fallout 4

Commands for Popular Actions


Here are several popular commands that you can add to your own hotkey collection.

If you've created your own feel free to share them.

Replace the Bs and the Gs to set your own keys for these actions!

Lower Weapons On Demand:
B=player.pa actiongunrelaxed; player.pa actiongundown

Toggle HUD
B=tm

Remotely Command Companions
See here.

Hotkey Manager Slots:
NumPad1=hot 1
NumPad2=hot 2
, etc.

Split Grenade and Melee Hotkeys:
G=player.pa ActionThrow
B=player.pa ActionMelee


Unfortunately you can't override L Alt, so I'd recommend just assigning B for bash, and continue to use L-Alt to throw grenades!

Toggle clipping / collision:
G=prid;tcl

Switch to Fists
B=player.cf equipitem c2c27 0 1

Save Game Hotkey that makes an autosave
F4=autosave

Save Game Hotkey that creates new saves in a new save slot
B=cgf "Game.RequestSave"; cgf "Debug.Notification" "Saving..."

Dance Anywhere (second line is to stop animations):
G=player.playidle IdleMagnoliaSong05
B=player.playidle IdleStop
For a larger list of animations you can hotkey, visit here.

Wait Anywhere
    Y=showmenu sleepwaitmenu

Toggle Pip-Boy Radio (requires a helper scriptlet -get it from the Files tab)
    B=cgf "Radio.Toggle"

Unequip Eyewear/Weapon/Apparel/etc.
    B=player.cf "actor.unequipitemslot" 17
Take the slot number you want to unequip and subtract 30.
e.g. To unequip the Body slot (slot 33), type unequipitemslot 3.
To unequip the Eyewear slot (slot 47), type unequipitemslot 17

NOTE: This only works in third-person.
If you're looking for a toggle for your equipment, check out Outfit Switcher.

Activate VANS
    B=player.cios 3cc96

Enter Workshop Mode
    G=workshop

Reload Hotkeys from Hotkeys.ini
    reload console (two words)

Pick object under crosshair and highlight it
    pnr;pms 247a3f 1

Pick actor under crosshair and highlight it
    pna;pms 247a3f 1

Article information

Added on

Edited on

Written by

registrator2000

342 comments

  1. qu999
    qu999
    • member
    • 0 kudos
    Pick companion under crosshair and get his attitude
    pna;getav ca_affinity;pickrefbyid "";

    Pick companion under crosshair and open his inventory
    pna;openactorcontainer 1;pickrefbyid "";

    Pick conteiner under crosshair and get ref id all items inside
    pnr;inv;pickrefbyid ""

    Pick conteiner under crosshair and remove all items inside
    pnr;removeallitems;pickrefbyid "";
    1. northpak
      northpak
      • member
      • 0 kudos
      These commands work from the console, can they be bound to a hotkey?
    2. qu999
      qu999
      • member
      • 0 kudos
      Yes, of course.
      Example:
      F1=pna;getav ca_affinity;pickrefbyid "";
      F2=pna;openactorcontainer 1;pickrefbyid "";
    3. northpak
      northpak
      • member
      • 0 kudos
      qu999 Thank you for taking the time to return to an old post and answer my question,

      I had attempted to use the commands but with a different hot key combination and I may have missed the correct order for using Alt Shift Ctrl etc when making edits to the Hotkeys.ini file.

      I just tried again with  your examples just using F1 and F2 and the commands work as expected.

      Many Thanks
  2. StikShift4Life
    StikShift4Life
    • member
    • 0 kudos
    Does anyone have a list of actions for the player.pa command? I can't seem to find on the interwebs.
  3. DxwnSxndrxme
    DxwnSxndrxme
    • member
    • 0 kudos
    VATS console command to bind? since i have a layout chaning mod for cotrollers abd i doesn't come up with vats support for some reason
    1. DxwnSxndrxme
      DxwnSxndrxme
      • member
      • 0 kudos
      Like press "L" to activate vats
  4. TheWideMurloc
    TheWideMurloc
    • premium
    • 32 kudos
    is there a command to turn the flashlight on and off? I'd love to seperate that binding from the pip boy
    1. Blad029
      Blad029
      • member
      • 0 kudos
      I'm looking for the exact same thing. Did you ever find an answer?
    2. TheWideMurloc
      TheWideMurloc
      • premium
      • 32 kudos
      Yes and no
      there's a papyrus addon called Lighthouse that has the flashlight included as a command, but I couldnt figure out how to get it working myself
    3. vvk78
      vvk78
      • member
      • 80 kudos
      Use the NAC X mod, it has an optional Pipboy Flashlight mode, that you can toggle by long-pressing TAB key inside the game (short key press of TAB toggles the UI/Inventory menu).
      If helmet (e.g., combat helmet or miner's helmet) with built-in light/lamp is equipped, then same key will toggle its light as a focused light instead.
      NAC X - NATURAL AND ATMOSPHERIC COMMONWEALTH 10 - Legacy EditionNAC X MCM
    4. TheWideMurloc
      TheWideMurloc
      • premium
      • 32 kudos
      I think we all know how that works, we were looking for a way to make the light button seperate from the UI button
  5. AEon2001
    AEon2001
    • member
    • 8 kudos
    I looked through the Fallout 4\ Data\Fallout4.esm file and found the actionSheath etc. parameter. And since I have not found a comprehensive list of these commands, I am putting it together here:

    List of potential player.pa Command Parameters:

    Spoiler:  
    Show
    CMAM
    ----
    ActionTrick
    ActionFireEmpty
    ActionWeaponHotkey
    ActionFlinchStart
    ActionPerkSandman
    ActionPerkCannibal
    ActionGunAlert
    ActionHide
    ActionCameraBToCameraA
    ActionCameraAToCameraB
    ActionSwimStop
    ActionSwimStart
    ActionAvailableCondition1Heal
    ActionRightArmHeal
    ActionLeftArmHeal
    ActionInstantAttackReset
    ActionJetpackStop
    ActionJetpackStart
    ActionUnconsciousExit
    ActionUnconsciousEnter
    ActionFireChargeHold
    ActionCustomLaughing
    ActionPropellersOn
    ActionPropellersOff
    ActionCustomBooing
    ActionCustomCheering
    ActionGunReady
    ActionDeferredKill
    ActionNonSupportContact
    ActionBark
    ActionEnterDialogueCameraState
    ActionGunChargeStart
    ActionIdlePlayful
    ActionChangeAnimFlavor
    ActionChangeAnimArchetype
    ActionBoltCharge
    ActionAttackMissed
    ActionTunnel
    ActionInteractionExitAlt
    ActionLeadingArrival
    ActionLeadingArrivalEmote
    ActionLeadingDoneEmote
    ActionLeadingDeparture
    ActionEscortWait
    ActionIdleFlavor
    ActionInstantInitializeGraphToBaseState
    ActionLegsHeal
    ActionPanic
    ActionCower
    ActionAOEAttack
    ActionPipboyInspect
    ActionShuffle
    ActionDodge
    ActionEvade
    ActionStumbleStart
    ActionGunRelaxed
    ActionPipboyTab
    ActionPipboyMap
    ActionPipboyInventory
    ActionPipboyData
    ActionPipboyStats
    ActionPipboyZoom
    ActionExitCover
    ActionEnterCover
    ActionPipboyOpen
    ActionThrow
    ActionFireAuto
    ActionFireCharge
    ActionFireSingle
    ActionMelee
    ActionSightedRelease
    ActionSighted
    ActionReload
    ActionGunDown
    ActionListenNeutral
    ActionListenQuestion
    ActionListenNegative
    ActionListenPositive
    ActionIntimidate
    ActionInteractionEnter
    ActionInteractionEnterInstant
    ActionInteractionExit
    ActionInteractionExitQuick
    ActionPipboyClose
    ActionPipboyRadioOff
    ActionPipboyRadioOn
    ActionPipboySelect
    ActionPipboyTabPrevious
    ActionCoverSprintStart
    ActionActivateLoopingEnd
    ActionMantle
    ActionLeftSyncAttack
    ActionRightSyncAttack
    ActionFlipThrow
    ActionDialogueExit
    ActionDialogueEnter
    ActionPipboyLoadHolotape
    ActionLimbCritical
    ActionCombatExit
    ActionCombatEnter
    ActionActivateLoopingBegin
    ActionFurnitureFull
    ActionInitializeGraphToBaseState
    ActionFurnitureNoLongerFull
    ActionLegsCritical


    AACT
    ----
    ActionTurnStop
    ActionTurnLeft
    ActionTurnRight
    ActionMoveStop
    ActionMoveStart
    ActionLand
    ActionFall
    ActionLargeMovementDelta
    ActionDeathWait
    ActionDualRelease
    ActionDualAttack
    ActionStopEffect
    ActionListen
    ActionTalking
    ActionDeath
    ActionSummonedStart
    ActionBumpedInto
    ActionHoverStop
    ActionHoverStart
    ActionFlyStop
    ActionFlyStart
    ActionSprintStart
    ActionPathEnd
    ActionPathStart
    ActionForceEquip
    ActionBlockAnticipate
    ActionIdleStop
    ActionBleedoutStop
    ActionBleedoutStart
    ActionRecoilLarge
    ActionRecoil
    ActionBlockHit
    ActionStaggerStart
    ActionVoiceInterrupt
    ActionVoiceReady
    ActionVoiceRelease
    ActionRightInterrupt
    ActionRightReady
    ActionRightRelease
    ActionLeftInterrupt
    ActionLeftReady
    ActionLeftRelease
    ActionRightPowerAttack
    ActionDraw
    ActionSprintStop
    ActionLook
    ActionActivate
    ActionVoice
    ActionSneak
    ActionJump
    ActionRightAttack
    ActionLeftAttack
    ActionSwimStateChange
    ActionIdle
    ActionWardHit
    ActionRagdollInstant
    ActionIdleStopInstant
    ActionSheath
    ActionGetUp
    ActionKnockDown
    ActionShieldChange
    ActionMoveRight
    ActionMoveLeft
    ActionMoveBackward
    ActionMoveForward
    ActionDualPowerAttack
    ActionLeftPowerAttack
    ActionIdleWarn

    Warning: Use this info at your own risk. These commands are untested, I only just found them. I assume some of them will be useful, and will be testing them over the next weeks.

    Hope the info is helpful.

    From the above tested parameters only these so far worked (3 are used already (see top of page examples), a 4th one was suggested, the 5th one I just found):

    1. ActionThrow // Throws grenade or mine.
    2. ActionMelee // Performs a melee attack.
    3. ActionGunDown// Lowers the weapon.
    4. ActionSheath // Holster weapon.
    5. ActionReload // Reloads weapon, just like R-key.
    1. vXZeroXv
      vXZeroXv
      • member
      • 0 kudos
      which one of them is the Hold Breath function? I've read a few times but still don't know which one it is
      
    2. Pytsen
      Pytsen
      • member
      • 0 kudos
      Have you found out yet?
  6. Koross
    Koross
    • supporter
    • 0 kudos
    Guys, no way to hotkey the pipboy light?
    1. llamaloka
      llamaloka
      • member
      • 0 kudos
      did u find the command to the pipboy light ?
    2. picus666
      picus666
      • member
      • 0 kudos
      It was hold TAB, now it doesnt work anymore?
    3. Koross
      Koross
      • supporter
      • 0 kudos
      Kind old to reply to this but (Its for myself too)...
      By default the way to switch on the pipboy light is to hold down TAB till it switches on. Same way to switch it off.
      I was wondering if there was a way to hotkey it so that I can just switch it on and off quickly without having to hold down a button. Since I am not getting a reply I am assuming no one knows the command to do that.
    4. Blad029
      Blad029
      • member
      • 0 kudos
      Man I'm looking for that information now.
  7. BlackHades0133
    BlackHades0133
    • member
    • 7 kudos
    Is it possible build a addition key to move like WASD key?
    Tried use ActionMoveForward, but failed.
  8. Bazixah
    Bazixah
    • premium
    • 0 kudos
    Is it possible to hotkey switching from keyboard to gamepad and vice versa?
  9. Valartelo
    Valartelo
    • member
    • 0 kudos
    Who knows command to switch camera mode/look around (360 degrees)?
    1. qu999
      qu999
      • member
      • 0 kudos
      Maybe:
      tfc
      or
      ToggleFlyCam
  10. Rebel00
    Rebel00
    • premium
    • 2 kudos
    A few hotkeys for some common healing items / grenades* ...
    Spoiler:  
    Show

    ; Use HEALING items (H / Shift+H)
    H=if player.GetItemCount 23736 > 0; player.cf equipitem 23736; else; cgf "Debug.Notification" "No Stimpaks in inventory."; endif
    Shift-H=if player.GetItemCount 23742 > 0; player.cf equipitem 23742; else; cgf "Debug.Notification" "No RadAway in inventory."; endif

    ; Equip GRENADES/MINES (Numpad<0-9>)
    NumPad0=cqf GT_GrenadeCycle GrenadeCycle
    NumPad1=if player.GetItemCount 000EEBED > 0; player.cf equipitem 000EEBED; else; cgf "Debug.Notification" "No Frag Grenades in inventory."; endif
    NumPad2=if player.GetItemCount 0010C3C6 > 0; player.cf equipitem 0010C3C6; else; cgf "Debug.Notification" "No Molotov Cocktails in inventory."; endif
    NumPad3=if player.GetItemCount 000E56C2 > 0; player.cf equipitem 000E56C2; else; cgf "Debug.Notification" "No Frag Mines in inventory."; endif
    NumPad4=if player.GetItemCount 00107BD6 > 0; player.cf equipitem 00107BD6; else; cgf "Debug.Notification" "No Baseball Grenades in inventory."; endif
    NumPad5=if player.GetItemCount 000FF21F > 0; player.cf equipitem 000FF21F; else; cgf "Debug.Notification" "No Pulse Grenades in inventory."; endif
    NumPad6=if player.GetItemCount 0010771F > 0; player.cf equipitem 0010771F; else; cgf "Debug.Notification" "No Bottlecap Mines in inventory."; endif
    NumPad7=if player.GetItemCount 000E5750> 0; player.cf equipitem 000E5750; else; cgf "Debug.Notification" "No Nuka Grenades in inventory."; endif
    NumPad8=if player.GetItemCount 0010A33D > 0; player.cf equipitem 0010A33D; else; cgf "Debug.Notification" "No Plasma Grenades in inventory."; endif
    NumPad9=if player.GetItemCount 0010A342 > 0; player.cf equipitem 0010A342; else; cgf "Debug.Notification" "No Plasma Mines in inventory."; endif



    This method will only really work for Vanilla FormID's
    * (Grenade Cycling mod required for NumPad0 line)
    1. HangoverXIII
      HangoverXIII
      • member
      • 6 kudos
      Sorry, but what does this do? I think it auto cycles through throwables or healing items I think...
    2. Rebel00
      Rebel00
      • premium
      • 2 kudos
      The line ending =cqf GT_GrenadeCycle GrenadeCycle is the only part which actually cycles.
      That is from the Grenade Cycle Function mod which inspired me to add shortcuts directly to specific types of common items.

      For quick healing I use H for Stimpaks or Shift+H for Radaway.
      I also added shortcuts on the NumPad keys 1 to 9 to equip a variety of grenade/mine types.  
      The first part of the line if player.GetItemCount 00xxxxxx > 0 prevents the item from being created if not already in your inventory.
      The last part of the line else; cgf 'Debug.Notification" "No _____ in inventory."; endif displays a notification in that case.

      You can change the keys however you wish or change the item type but you will need the item ID. 
      I would NOT recommend using this for any items from outside of the base game/DLC's as you would need to update this file if your load order changed.
    3. deleted40429935
      deleted40429935
      • account closed
      • 0 kudos
      Thanks! I will definitely be making use of this!
    4. qu999
      qu999
      • member
      • 0 kudos
      Thank you! I would add to example:
      NumPad1=if "14".GetItemCount 000EEBED>0;"14".cf equipitem 000EEBED;else;cgf"Debug.Notification""No Frag Grenades in inventory";endif;if "14".getEquipped 000EEBED;cgf"Debug.Notification""Grenade is ready";endif;
      etc