Sound

From Virtual Paradise Wiki
Revision as of 22:06, 12 August 2016 by Talisan (talk | contribs) (Created page with "{{feature|1|0.3.54| |Sound1.png| }} The '''sound''' command plays a sound in a currently undefined radius {{Clear}} ==Usage== '''sound''' url [''loop | noloop''] [''glob...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Sound
Build required 1
Version required 0.3.54


The sound command plays a sound in a currently undefined radius

Usage

   sound url [loop | noloop] [global]

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
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.

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
Object Scripting

Triggers:

ActivateAdoneBumpBumpendCreate

Commands:

AnimateAnimationAmbientCameraColorDiffuseFrameFramerateGroupLightMoveNameNoiseNormalmapOpacityPathPictureRotateSayShearScaleSignSolidSoundSpecularSpecularmapTeleportTeleportxTeleportxyzTextureUrlVisibleWeb