TryGetChannelPolicy
7/14/25Less than 1 minute
Room.TryGetChannelPolicy(number channelID)
Gets the channel policy of the specified channel, if it exists.
Parameters:
| Name | Type | Description |
|---|---|---|
| channelID | number | The channel to retrieve. Range[0-255] |
Returns:
| type | Description |
|---|---|
| boolean | true if the channel is found, false otherwise |
| MLAudioChannelPolicy | the channel policy or nil |
Usage
---@type number
local channelID;
local val0, val1 = Room:TryGetChannelPolicy(channelID)
