M MY Multiplayer: Wiki
Side
Kind

isWorldSoundEnabled

Client

Tells whether a world sound, or a group of them, is on.

bool isWorldSoundEnabled(int group [, int index = -1])

Parameters

NameTypeDescription
groupintThe sounds' group.
indexintOne 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

See also