- Documentation
- Client functions
- isSFXBankLoaded
Function
isSFXBankLoaded
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
playSFXPlays a sound from San Andreas' own sound banks (footsteps, weapons, collisions, vehicles, mission sounds) with no position in the world. The game's sound engine plays it, so it follows the game's effects volume.playSFX3DPlays a sound from the game's banks at a point in the world. The game's sound engine handles fading with distance and panning.getSFXBankSoundCountWithout a bank number it returns the number of banks in the container. With a bank number it returns the number of sounds in that bank.