OnGameModeExit
The server shuts down or the mode is about to be reloaded.
The last callback of a mode’s life. Persist what you need with SetServerData or
SetSavedData; the objects the mode made are torn down by the server right after this.
Syntax
Section titled “Syntax”function OnGameModeExit() -- ...endReturns
Section titled “Returns”nothing
Example
Section titled “Example”function OnGameModeExit() SetServerData("rounds_played", tostring(roundsPlayed))endSee also
Section titled “See also”OnGameModeInit · ReloadGameMode · the Server and timers group of the index
