QuitToMainMenu - Game

From Creation Kit
Jump to: navigation, search

Member of: Game Script

Force the game back to the main menu.

Syntax

Function QuitToMainMenu() native global

Parameters

None.

Return Value

None.

Examples

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

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.

See Also