Method Global:ClearPacketEvents [-] [+]

Unbinds event handlers for either all of a WorldPacket opcode's events, or one type of event.

If event_type is nil, all the WorldPacket opcode's event handlers are cleared.

Otherwise, only event handlers for event_type are cleared.

Synopsis

ClearPacketEvents( opcode )

ClearPacketEvents( opcode, event_type )

Arguments

number opcode

The type of WorldPacket whose handlers will be cleared.

Valid numbers: integers from 0 to 4,294,967,295.

number event_type

The event whose handlers will be cleared, see Global:RegisterPacketEvent.

Valid numbers: integers from 0 to 4,294,967,295.

Returns

Nothing.

Generated on
© 2010 - 2024 Eluna Lua Engine