Last active
March 27, 2020 01:44
-
-
Save Scrivener07/eab6931beb00ef465975d8911f7566cd to your computer and use it in GitHub Desktop.
In fallout 4 there is a console command called `Screenshot`. You might be able to invoke the command in a convoluted way to execute it from Papyrus.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScriptName ConsoleRunner Extends Quest | |
int Home = 36 const ; the home key | |
string EmptyState = "" const | |
string ExecuteState = "Execute" const | |
string ConsoleMenu = "Console" const | |
Event OnQuestInit() | |
RegisterForKey(Home) | |
EndEvent | |
Event OnKeyDown(int keyCode) | |
GotoState(ExecuteState) | |
EndEvent | |
State Execute | |
Event OnBeginState(string oldState) | |
RegisterForMenuOpenCloseEvent(ConsoleMenu) | |
UI.OpenMenu(ConsoleMenu) | |
EndEvent | |
Event OnMenuOpenCloseEvent(string menuName, bool opening) | |
If (opening) | |
var[] arguments = new var[1] | |
arguments[0] = "Screenshot" ; the console command to send | |
UI.Invoke(ConsoleMenu, "root1.AnimHolder_mc.Menu_mc.executeCommand", arguments) | |
GotoState(EmptyState) | |
EndIf | |
EndEvent | |
Event OnEndState(string newState) | |
UnregisterForMenuOpenCloseEvent(ConsoleMenu) | |
UI.CloseMenu(ConsoleMenu) | |
EndEvent | |
EndState |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A script like this could easily be altered to run a different console command, or any console command.
Example
Console:
COC RedRocketExt
UI.psc
is a script provided by F4SE.