User Tools

Site Tools


This is an old revision of the document!

Audio (Module)

Module for the audio subsystem.


localSound ( sound : Text, volume : Number )

Start playing a local sound without any particular emitter object. sound must be a valid ID of a Sound definition. 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.1576426495.txt.gz · Last modified: 2019-12-15 18:14 by skyjake