User Tools

Site Tools



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
Next revision Both sides next revision
script:module:audio [2019-12-15 18:09]
skyjake [Functions]
script:module:audio [2019-12-15 18:14]
skyjake [Functions]
Line 5: Line 5:
 ===== Functions ===== ===== Functions =====
-@#​Identifier_HTML~localSound~#​@ ( )+#@Identifier_HTML~localSound~@# ( 
 + #@Arg_HTML~Text,​sound~@#,​ 
 + #​@Arg_HTML~Number,​volume~@#​ ) 
 +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.
script/module/audio.txt · Last modified: 2020-11-12 18:25 by skyjake