Skip to content

OnQueueUpdate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnQueueUpdate( Network.Connection c, int position )
{
    Puts( "OnQueueUpdate works!" );
    return null;
}

Location

  • ConnectionQueue::SendQueueUpdate(Network.Connection c, int position)
csharp
private void SendQueueUpdate(Connection c, int position)
{
	if (Interface.CallHook("OnQueueUpdate", c, position) == null)
	{
		NetWrite netWrite = Net.sv.StartWrite();
		netWrite.PacketID(Message.Type.QueueUpdate);
		netWrite.UInt16((ushort)Queued);
		netWrite.UInt16((ushort)position);
//---

Released under the MIT License.