Sound: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
'''sound''' url [''loop | noloop''] [''global''] [''radius=''] | '''sound''' url [''loop | noloop''] [''global''] [''radius=''] [''volume=''] | ||
==Arguments== | ==Arguments== | ||
; url : A Uniform Resource Locator, an address on a reachable server. This may also be the filename of the resource which will, by default, retrieve the sound from the object paths /sounds folder | ; url : A Uniform Resource Locator, an address on a reachable server. This may also be the filename of the resource which will, by default, retrieve the sound from the object paths /sounds folder | ||
Line 10: | Line 10: | ||
; global : This will cause the sound to be played for all users within view of the object, otherwise it will play only for the user who initiated the event. Global is per command, not per trigger. | ; global : This will cause the sound to be played for all users within view of the object, otherwise it will play only for the user who initiated the event. Global is per command, not per trigger. | ||
; radius : Changes the radius that the sound will play in.<br />'''Prerequisites:''' version 0.3.60<br />'''Values:''' Decimal numbers greater than 0.0<br />'''Default:''' 50 | ; radius : Changes the radius that the sound will play in.<br />'''Prerequisites:''' version 0.3.60<br />'''Values:''' Decimal numbers greater than 0.0<br />'''Default:''' 50 | ||
; volume : Changes the volume at which the sound will play.<br />'''Prerequisites:''' version 0.3.55<br />'''Values:''' Decimal numbers between 0.0 and 1.0<br />'''Default:''' 1.0 | |||
==Example== | ==Example== |
Revision as of 00:19, 19 August 2017
Sound | ||
---|---|---|
Build required | 1 | |
Version required | 0.3.54 |
The sound command plays a sound in a defined radius of 50 meters since 0.3.60, or in an undefined radius in previous versions.
Usage
sound url [loop | noloop] [global] [radius=] [volume=]
Arguments
- url
- A Uniform Resource Locator, an address on a reachable server. This may also be the filename of the resource which will, by default, retrieve the sound from the object paths /sounds folder
- loop | noloop
- Looping is on by default, and noloop will only play the sound once
- global
- This will cause the sound to be played for all users within view of the object, otherwise it will play only for the user who initiated the event. Global is per command, not per trigger.
- radius
- Changes the radius that the sound will play in.
Prerequisites: version 0.3.60
Values: Decimal numbers greater than 0.0
Default: 50 - volume
- Changes the volume at which the sound will play.
Prerequisites: version 0.3.55
Values: Decimal numbers between 0.0 and 1.0
Default: 1.0
Example
create sound sound.wav loop
- The file sound.wav is retrieved from the object path sounds folder, and played over and over, though loop is superfluous
activate sound sound.wav global, sound music.wav
- User who clicked hears music.wav, others hear sound.wav
|
|
Triggers: |
|
Commands: |
Animate • Animation • Ambient • Camera • Color • Diffuse • Frame • Framerate • Group • Light • Move • Name • Noise • Normalmap • Opacity • Path • Picture • Rotate • Say • Shear • Scale • Sign • Solid • Sound • Specular • Specularmap • Teleport • Teleportx • Teleportxyz • Texture • Url • Visible • Web |