Skip to content

OnServerRestartInterrupt

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnServerRestartInterrupt(  )
{
    Puts( "OnServerRestartInterrupt works!" );
}

Location

  • ServerMgr::RestartServer(string strNotice, int iSeconds)
csharp
//---
	{
		return;
	}
	if (SingletonComponent<ServerMgr>.Instance.restartCoroutine != null)
	{
		if (Interface.CallHook("OnServerRestartInterrupt") != null)
		{
			return;
		}
		ConsoleNetwork.BroadcastToAllClients("chat.add", new object[]
		{
//---

Released under the MIT License.