Playsound

From Virtual Paradise Wiki
Jump to navigation Jump to search
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://geo.immortaltools.com/blizzard/op/playsound.php?url=sounds/forest1.wav&loop=yes
activate web playsound.php?url=sounds/forest1.wav


Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb