Skip to main content

Aliasy

  • raknet.add_send_hook

Argumenty

(packet: RakNetPacket) -> ()
wymagane
Function called with each observed outgoing RakNetPacket.

Zwroty

function
The same callback function that was passed in.

Typy

RakNetPacket

Live packet object passed to RakNet hooks and packet signal callbacks. It is only valid during the callback that receives it.

Przykład

Observe outgoing packets with a callback and remove the same callback later.