Skip to content

OnClientDisconnected

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnClientDisconnected( Network.Connection cn, string strReason )
{
    Puts( "OnClientDisconnected works!" );
}

Location

  • Network.Server::OnDisconnected(string strReason, Network.Connection cn)
csharp
//---
		cn.active = false;
		if (callbackHandler != null)
		{
			callbackHandler.OnDisconnected(strReason, cn);
		}
		Interface.CallHook("OnClientDisconnected", cn, strReason);
		RemoveConnection(cn);
	}
}

Released under the MIT License.