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:14]
skyjake [Functions]
script:module:audio [2019-12-15 18:15]
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. Use [[script:​module:​world#​World.Thing|World.Thing.startSound()]] to play a sound originating from a thing.+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.txt ยท Last modified: 2019-12-15 18:15 by skyjake