About this mod
Hotkey console commands and game actions. Examples: set a hotkey to enter Photo Mode, change outfits, open the Wait menu, toggle the freecam, stop/slow time, and more.
- Requirements
- Permissions and credits
Hotkey any console command or in-game Papyrus function to any key. A port of FO4 Hotkeys to Starfield.
This means that you can have a one-button press to:
- Use consumables / equipment
- Enter Photo Mode
- Hide/show HUD, toggle flycam, freeze time, play animations
- Wait anywhere
- Toggle spacesuit visibility
- Activate other mods
You can also create macros for your favorite console commands or for scripts provided by other mods.
After hotkeys are set up, you can use the 'hotkey' and 'macro' console commands to set and unset new hotkeys/macros.
Installation
Installation:
- Download and unzip the mod, then open enable_hotkeys.cmd to enable hotkeys.
Uninstallation:
- Run disable_hotkeys.cmd to disable hotkeys. You will be asked whether you want to keep your hotkey settings file.
Manual install (limited functionality):
However, take note that the 'hotkey' and 'macro' console commands will not be functional, and you will only be able to set your hotkeys by editing the INI file outside the game.
[Menu]
bUseConsoleHotkeys<>1
sConsoleINI<>Hotkeys.ini
(Replace <> with =; the Nexus has a overzealous Javascript filter)
Hotkeys Usage
Guides:
Two hotkeys are included in the installation by default so that you can make sure you've got hotkeys set up properly.
Once in-game, press F2 to toggle menu visibility, and F3 to toggle the free-fly camera.
You can add/remove hotkeys by 1) using the hotkey console command in-game, or 2) modifying the hotkeys INI file.
1) Setting hotkeys in-game
Register new hotkeys in-game with the console command 'hotkey'.
Format: hotkey <key to bind> <function to bind>
Leave <function to bind> empty to unbind a hotkey. Run 'hotkey' to list all current hotkeys.
Examples:
2) Setting hotkeys by editing the Hotkeys.ini file
Hotkeys are saved in Hotkeys\Hotkeys.ini in your Starfield installation folder. Edit this file to add/modify hotkeys.
Example hotkeys:
[Hotkeys]
F2=tm
F3=tfc
If you edit the Hotkeys.ini file while the game is running and want the changes to take effect immediately, enter 'reload console' (two words) in the console to reload your hotkeys and macros from the INI file.
Macros
Macros allow you to create your own custom console commands that can run sub-commands or scripts.
Example macro:
[Macros]
pm=showmenu photomodemenu
Running 'pm' in the console will run 'showmenu photomodemenu' to open Photo Mode. The macro can also be used in hotkeys.
Multiple commands can be chained together by using the semicolon (;) as a delimiter. If-else blocks can also be used within commands.
Notes
One of the biggest draws of hotkeys is the ability to hotkey and trigger actions in other mods. It is still early days for Starfield, but once mod authors gain access to Papyrus scripting functionality, we should see many more possibilities for hotkey-able mods, such as commanding/issuing orders to companions via hotkey, or for activating certain special effects (e.g. Bullet Time).
For Mod Authors
I have also uploaded under Optional Files a small utility that can automatically merge your mod's hotkeys with your users' Hotkeys.ini. Feel free to rebrand, redistribute and modify this merging utility for your needs.
You can specify your mod's hotkeys in a separate Hotkeys\Hotkeys.ini file, and the utility will automatically take these and merge them into the user's existing hotkeys.
If your mod is a console batch script, you can assign a hotkey to the bat command.
If your mod has Papyrus script logic, make your trigger a global Papyrus function and use the command: `cgf YourScript.YourFunction` to invoke the function via macro/hotkey.