Playsound
Playsound | ||
---|---|---|
[[Image:{{{4}}}|center|middle|200x200px]] | ||
{{{5}}} | ||
Build required | 1 | |
Version required | 0.3.45 |
The playsound.php php script plays a sound from an object using PHP and HTML5 through the web action command. Similar to noise action command. Works in worlds with the playsound.php script but can be used in other worlds by entering the full url to the script (first example).
Usage
create web playsound.php? [url=] & [loop=yes OR no]
This has various uses such as to play an ambient sound in an area or music from a jukebox.
Arguments
- Url
- The Ogg or Wav file to be played
- Loop (optional)
- Specifies whether to loop the sound
Example
create web http://cloud.immortaltools.com/blizzard/op/playsound.php?url=sounds/forest1.wav&loop=yes
activate web playsound.php?url=sounds/forest1.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 |