Difference between revisions of "LlAdjustSoundVolume"
Jump to navigation
Jump to search
Fox Diller (talk | contribs) |
Void Singer (talk | contribs) m (updated lsl tags) |
||
Line 11: | Line 11: | ||
|constants | |constants | ||
|examples= | |examples= | ||
< | <lsl> | ||
default | default | ||
{ | { | ||
Line 26: | Line 26: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 05:18, 11 February 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llAdjustSoundVolume( float volume );207 | Function ID |
0.1 | Forced Delay |
10.0 | Energy |
Adjusts volume of attached sound.
• float | volume | – | between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0 )
|
Caveats
Examples
<lsl> 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"); }
}
</lsl>