Skip to content

StopMusic

Stops the background music

Parameters

NameTypeOptionalDescription
audiostringAudio resource

Usage

ts
engine.script({
  start: [
    /**
     * The same address as used in `playMusic`
     */
    action.stopMusic("./assets/annoying-melody.mp3"),
  ],
});

Released under the ISC License.