Skip to content

PlaySound ​

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

Parameters ​

NameTypeOptionalDescription
audiostring❌Audio resource
loopboolean✅Loop or not

Usage ​

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

Released under the ISC License.