Skip to content

OnConnectionDequeue

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnConnectionDequeue( Network.Connection connection )
{
    Puts( "OnConnectionDequeue works!" );
    return null;
}

Location

  • ConnectionQueue::RemoveConnection(Network.Connection connection)
csharp
public void RemoveConnection(Connection connection)
{
	if (Interface.CallHook("OnConnectionDequeue", connection) == null)
	{
		if (queue.Remove(connection))
		{
			nextMessageTime = 0f;
		}
//---

Released under the MIT License.