M MY Multiplayer: Wiki
Side
Kind

isSoundLooped

Shared

Tells whether a sound plays again when it reaches its end.

bool isSoundLooped(sound sound)

Parameters

NameTypeDescription
soundsoundThe sound element. On the client a dui element also works, for the browser's sound.

Returns

true if it loops, false if it does not or the sound was not found.

Example

outputDebugString(isSoundLooped(music) and "looping" or "plays once")

See also