get_comm_channel
Looks up an existing communication channel by ID.
Syntax
get_comm_channel(id: number) -> BindableEvent?
Also available as
getcommchannel
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Channel ID from create_comm_channel. |
Returns
| Type | Description |
|---|---|
BindableEvent? | Existing channel, or nil when unavailable. |
Description
Use the ID returned by create_comm_channel in the same game session. An unknown or expired ID returns nil. Retrieving a channel does not create another one and does not replay earlier events.
Example
local id, original = create_comm_channel()
local channel = get_comm_channel(id)
if channel then channel:Fire("hello") end
These are Game executor contracts. Check build requirements and session lifetimes before using them.
