isWorldSoundEnabled
Client
Tells whether a world sound, or a group of them, is on.
bool isWorldSoundEnabled(int group [, int index = -1])
Parameters
| Name | Type | Description |
|---|---|---|
| group | int | The sounds' group. |
| index | int | One sound in the group. -1 asks about the whole group.default -1 |
Returns
true if it is on. With index -1, false if any sound in the group is off.
Example
if not isWorldSoundEnabled(5) then
setWorldSoundEnabled(5, true)
end