Skip to content

StopSound

Stops the sound. Maybe it is long and you want to stop it already

Parameters

NameTypeOptionalDescription
audiostringAudio resource

Usage

ts
engine.script({
  start: [
    action.stopSound("./assets/boom.mp3")
  ],
});

Released under the ISC License.