QuitToMainMenu - Game

Revision as of 02:45, 4 April 2017 by imported>DavidJCobb (added Notes section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: Game Script

Force the game back to the main menu.

SyntaxEdit

Function QuitToMainMenu() native global

ParametersEdit

None.

Return ValueEdit

None.

ExamplesEdit

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

NotesEdit

  • 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 AlsoEdit