RakNetPacket.Direction
Reads outgoing or Incoming. Incoming objects are observations of traffic already delivered to the game.
Syntax
packet.Direction: string
Also available as
RakNetPacket.direction
Returns
| Type | Description |
|---|---|
string | Outgoing or Incoming. Incoming objects are observations of traffic already delivered to the game. |
Description
Packet metadata properties are read-only. Read the value inside the hook, and retain a byte copy when you need data afterward. Direct assignment to a packet property raises an error.
Example
local function inspect(packet)
local value = packet.Direction
print(value)
end
raknet.addsendhook(inspect)
task.delay(5, function() raknet.removesendhook(inspect) end)
These are Game executor contracts. Check build requirements and session lifetimes before using them.
