Skip to content

PlaySound

Plays the sound. Sound does not stop when player goes to settings. By default it is not looped.

Parameters

NameTypeOptionalDescription
audiostringAudio resource
loopbooleanLoop or not

Usage

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

Released under the ISC License.