Skip to main content

Aliase

  • raknet.add_send_hook

Argumente

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

Rückgaben

function
The same callback function that was passed in.

Typen

RakNetPacket

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

Beispiel

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