Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:scripting_portal:lsl_functions:lladjustsoundvolume [2019/07/19 20:52] (current)
Royale Mobian created
Line 1: Line 1:
 +====== llAdjustSoundVolume ======
 +**[[wiki:​scripting_portal:​lsl_functions|Function]]:​ llAdjustSoundVolume( [[wiki:​scripting_portal:​lsl_types:​float|float]] volume );**\\
 +Adjusts **volume** of attached sound.
 +  * [[wiki:​scripting_portal:​lsl_types:​float|float]] volume – between 0.0 (silent) and 1.0 (loud) (''​0.0 <= volume <= 1.0''​)
  
 +===== Caveats =====
 +  * This function causes the script to sleep for 0.1 seconds.
 +
 +===== Examples =====
 +<code ossl>
 +default
 +{
 +    state_entry()
 +    {
 +        llListen(42,​ "",​ llGetOwner(),​ ""​);​
 +    }
 + 
 +    listen(integer chan, string name, key id, string msg)
 +    {
 +        float value = (float)msg;
 +        llAdjustSoundVolume(value);​
 +        llOwnerSay("​Volume set to: " + (string)value + " of 1.0");
 +    }
 +}
 +</​code>​
QR Code
QR Code wiki:scripting_portal:lsl_functions:lladjustsoundvolume (generated for current page)