llSetSoundRadius

From Second Life Wiki
Revision as of 08:33, 23 April 2022 by Jenna Huntsman (talk | contribs) (Added note about how to disable. Added 2 examples.)
Jump to navigation Jump to search

Summary

Function: llSetSoundRadius( float radius );

Establishes a hard cut-off radius for audibility of scripted sounds (both attached and triggered).

• float radius in meters

Caveats

  • This function is a prim property, thus will survive script resets.

Important Issues

~ All Issues ~ Search JIRA for related Bugs
   Function: llSetSoundRadius( float radius ); fails to limit sound to radius

Examples

Enable sound cutoff at 4 meters.

llSetSoundRadius(4); //Enable sound cutoff at 4 meters.

Disable sound cutoff.

llSetSoundRadius(0); //Disable sound cutoff.

Notes

Pass 0 to this function to disable it.

See Also

Functions

•  llTriggerSoundLimited

Deep Notes

History

All Issues

~ Search JIRA for related Issues
   Function: llSetSoundRadius( float radius ); fails to limit sound to radius

Footnotes

  1. ^ Early release notes were not very accurate or thorough, they sometimes included information about features added in previous releases or failed to include information about features added in that release.

Signature

function void llSetSoundRadius( float radius );