User Tools

Site Tools


script:module:audio

This is an old revision of the document!


Audio (Module)

Module for the audio subsystem.

Functions

localSound ( sound : Text, volume : Number )

Start playing a local sound without any particular emitter object. sound must be a valid Sound ID. volume is the volume of the sound in the range 0…1.

This is useful for example for UI/HUD sound effects. Use World.Thing.startSound() to play a sound originating from a thing.

script/module/audio.1576426467.txt.gz · Last modified: 2019-12-15 18:14 by skyjake