OnServerRestartInterrupt
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnServerRestartInterrupt( )
{
Puts( "OnServerRestartInterrupt works!" );
return null;
}Location
- ServerMgr::RestartServer(string strNotice, int iSeconds)
csharp
//---
{
return;
}
if (SingletonComponent<ServerMgr>.Instance.restartCoroutine != null)
{
if (Interface.CallHook("OnServerRestartInterrupt") != null)
{
return;
}
ShowToastToAllClients(GameTip.Styles.Server_Event, RESTART_INTERRUPTED_PHRASE, false);
SingletonComponent<ServerMgr>.Instance.StopCoroutine(SingletonComponent<ServerMgr>.Instance.restartCoroutine);
//---