Difference between revisions of "LlTriggerSound"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=91|func_sleep=0.0|func_energy=10.0|func=llTriggerSound|p1_type=string|p1_name=sound|p2_type=float|p2_name=volume|func_footnote=plays sound at volume (0.0 - 1.0), centered at but not attached to object|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=91|func_sleep=0.0|func_energy=10.0
|func=llTriggerSound|sort=TriggerSound
|p1_type=string|p1_name=sound|p1_desc=inventory item or [[UUID]]
|p2_type=float|p2_name=volume|p2_desc=between 0.0 (silent) and 1.0 (loud) (0.0 <= '''volume''' <= 1.0)
|func_footnote=If the object moves the sound does not move with it.<br/>Use {{LSLG|llPlaySound}} to play a sound attached to the object.
|func_desc=Plays sound at '''volume''', centered at but not attached to object.
|return_text
|spec
|caveats
|constants
|examples
|helpers
|also_functions=*{{LSLG|llPlaySound}}
*{{LSLG|llTriggerSoundLimited}}
|also_tests
|also_events
|also_articles
|notes
|permission
|inventory=sound
|negative_index
|cat1=Sound
|cat2
|cat3
|cat4
}}

Revision as of 11:46, 14 February 2007

Summary

Function: llTriggerSound( string sound, float <span title="between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0)" style="border-bottom:1px dotted; cursor:help;">volume );

Plays sound at volume, centered at but not attached to object.

• string sound inventory item or UUID
• float volume between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0)

If the object moves the sound does not move with it.
Use llPlaySound to play a sound attached to the object.

Examples

See Also

Deep Notes

Search JIRA for related Issues

Signature

function void llTriggerSound( string sound, float volume );