Background for Skyrim SE
Member of the Game script
voidfunctionQuitToMainMenu()NativeGlobal

Description

Wiki Description

Force the game back to the main menu.

Documentation Comment

Forces the game back to the main menu


Caveats

CK Wiki - Notes

  • Calling this function doesn't terminate your script. Your code will continue to run while the game fades out to the main menu.
  • This function doesn't appear to clean up script engine state properly. Refer to the talk page for information.

Examples

; Force the game back to the main menu
Game.QuitToMainMenu()

Auto-Generated Example

Game.QuitToMainMenu()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.