OsAdjustSoundVolume
From OpenSimulator
(Difference between revisions)
(Created) |
m (Fixed some cut and paste errors) |
||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |function_syntax=osAdjustSoundVolume( | + | |function_syntax=osAdjustSoundVolume(integer linknum, float volume) |
|threat_level=ignored | |threat_level=ignored | ||
|permissions=true | |permissions=true | ||
Line 19: | Line 19: | ||
{ | { | ||
float volume = (float)msg; | float volume = (float)msg; | ||
− | + | osAdjustSoundVolume(which_prim, volume); | |
llOwnerSay("Volume in prim " + (string)which_prim + " was set to " + (string)volume); | llOwnerSay("Volume in prim " + (string)which_prim + " was set to " + (string)volume); | ||
} | } |
Revision as of 07:53, 4 November 2018
osAdjustSoundVolume(integer linknum, float volume)
| |
Adjust the volume of attached sound for a prim in a linkset. | |
Threat Level | This function does not do a threat level check |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0.1 seconds |
Example(s) | |
// Example use of osAdjustSoundVolume integer which_prim = 2; default { state_entry() { llListen(10, "", llGetOwner(), ""); } listen(integer channel, string name, key id, string msg) { float volume = (float)msg; osAdjustSoundVolume(which_prim, volume); llOwnerSay("Volume in prim " + (string)which_prim + " was set to " + (string)volume); } } | |
Notes | |
This function was added in 0.9.0.1 |