RakNetPacket.Broadcast
Reads whether the outgoing packet was marked for broadcast. Incoming snapshots report false.
Syntax
packet.Broadcast: boolean
Returns
| Type | Description |
|---|---|
boolean | Whether the outgoing packet was marked for broadcast. Incoming snapshots report false. |
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.Broadcast
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.
