Söz dizimi
RakNet.remove_send_hook(callback: function)Aliaslar
raknet.remove_send_hookArgümanlar
| Ad | Tip | Açıklama |
|---|---|---|
callback | function | The callback closure to remove from outgoing packet hooks. |
Açıklama
Removes a send hook previously registered with the same callback closure. The function returns no values whether or not a matching hook was present.
1 parametre ile cagir: callback. Arguman tablosu hangi degerlerin zorunlu oldugunu ve hangilerinin davranisi incelttigini aciklar.
Veri dondurmez. Cagriyi bir aksiyon olarak ele al ve gerekiyorsa hatalari cagri noktasinda yakala.
Örnek
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