llSetSoundRadius

From Second Life Wiki
Revision as of 07: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 );
0.0 Forced Delay
10.0 Energy

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.

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

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 );