Sintaxis
RakNet.remove_send_hook(callback: function)Alias
raknet.remove_send_hookArgumentos
| Nombre | Tipo | Descripción |
|---|---|---|
callback | function | The callback closure to remove from outgoing packet hooks. |
Descripción
Removes a send hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.
Llamalo con 1 parametro(s): callback. La tabla de argumentos explica que valores son obligatorios y cuales refinan el comportamiento.
No devuelve datos. Trata la llamada como una accion y maneja errores cerca del punto de llamada.
Ejemplo
Remove a send hook by passing the same callback closure that was registered.
local function onSend(packet)
print(packet.Size)
end
if raknet.is_enabled then
raknet.add_send_hook(onSend)
raknet.remove_send_hook(onSend)
end