ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isSFXBankLoaded

Function

isSFXBankLoaded

ClientSound (client)Trilogy Hub only

Checks whether the game has a sound bank loaded right now. Only such a bank plays through playSFX and playSFX3D.

Syntax

bool isSFXBankLoaded(string audioContainer, int bankIndex)

Arguments

audioContainerstring
The container.
bankIndexint
The bank number in the container.

Returns

true if the bank is loaded.

Example

for bank = 0, getSFXBankSoundCount("genrl") - 1 do
    if isSFXBankLoaded("genrl", bank) then
        outputConsole("genrl " .. bank .. ": " .. getSFXBankSoundCount("genrl", bank) .. " dzwiekow")
    end
end

See also