SlashCo Wiki

SlashCo.AudioSystem.GetChannelByIdentifier

 IGModAudioChannel SlashCo.AudioSystem.GetChannelByIdentifier( string identifier, number entIndex )

Description

Finds the channel matching the given identifier and entity index.
This will skip channels that have not yet been created or have been marked for destruction.

This is used internally - although you're able to use it you probably shouldn't.

Arguments

1string identifier

The identifier to search for

2number entIndex

The Entity:EntIndex to search for

Returns

1IGModAudioChannel channel

The found channel or nil on failure