OnGameModeExit
Description:
Callback OnGameModeExit is called when a gamemode ends, either through 'gmx', the server being shut down, or GameModeExit.
|
Parameters:
(This callback has no parameters.)
Return Values:
- 0 - Will prevent other filterscripts from receiving this callback.
- 1 - Indicates that this callback will be passed to the next filterscript.
- It is always called first in gamemode.
Examples:
public OnGameModeExit() { print("Gamemode ended."); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnGameModeInit: Called when a gamemode starts.
- OnFilterScriptInit: Called when a filterscript is loaded.
- OnFilterScriptExit: Called when a filterscript is unloaded.