Skip to content
AEOWUN
Docs Menu

Audio

Play sounds from AudioEmitter Cells.

Find an emitter

Give the AudioEmitter Cell a name and choose its sound in the editor.

const speakers = find("DoorSound")
if basket.len(speakers) > 0 {
    speakers[0].sound.play()
}

proj.find() searches Actors, so use a Cell lookup for an AudioEmitter Cell.

Control playback

The sound handle has play(), pause(), and stop(). Read playing to check playback. Set looped and volume to control it. These controls affect the current Play session. A missing emitter must be handled before reading sound. See the Audio reference for the properties and methods.

[BETA] marks features newer than the current public release. Current release: 0.8.0.