Playsound

From Virtual Paradise Wiki
Revision as of 22:30, 1 January 2016 by Legion (talk | contribs) (Fixed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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://cloud.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