Skip to main content

onEnd

onEnd

Registers a callback function to be called when a sound ends playing

function:

function onEnd(soundName: SoundName, callback: () => void)

Usage:

Sounds.onEnd("SCP096", () => {
print("Hello world!");
})
danger

The onEnd function is still in development and not usable yet.