Jump to content

Script: Make a Screenshot


Zorkaz

Recommended Posts

In fallout 4 I think its just a console command called `Screenshot`. You might be able to invoke the command in a convoluted way.

ScriptName Derp 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")
			GotoState(EmptyState)
		EndIf
	EndEvent
	Event OnEndState(string newState)
		UnregisterForMenuOpenCloseEvent(ConsoleMenu)
		UI.CloseMenu(ConsoleMenu)
	EndEvent
EndState

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...