User Tools

Site Tools


script:module:audio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:audio [2019-12-15 18:12]
skyjake [Functions]
script:module:audio [2019-12-15 18:15] (current)
skyjake [Functions]
Line 9: Line 9:
  #​@Arg_HTML~Number,​volume~@#​ )  #​@Arg_HTML~Number,​volume~@#​ )
  
-Start playing a local sound without any particular emitter object. //sound// must be a valid [[ded:​sound|Sound]] ​ID. //volume// is the volume of the sound in the range 0...1.+Start playing a local sound without any particular emitter object. //sound// must be a valid ID of a [[ded:​sound|Sound ​definition]]. //volume// is the volume of the sound in the range 0...1.
  
-This is useful for example for UI/HUD sound effects. ​+This is useful for example for UI/HUD sound effects. Use [[script:​module:​world#​World.Thing|World.Thing.startSound()]] to play a sound originating from a [[ded:​thing]].
  
script/module/audio.1576426344.txt.gz ยท Last modified: 2019-12-15 18:12 by skyjake