Difference between revisions of "LlTriggerSound"

From Second Life Wiki
Jump to navigation Jump to search
Line 3: Line 3:
|func=llTriggerSound|sort=TriggerSound
|func=llTriggerSound|sort=TriggerSound
|p1_type=string|p1_name=sound|p1_desc=inventory item or [[UUID]]
|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)
|p2_type=float|p2_name=volume|p2_desc=between 0.0 (silent) and 1.0 (loud) (0.0 &lt;&#61; '''volume''' &lt;&#61; 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_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.
|func_desc=Plays sound at '''volume''', centered at but not attached to object.

Revision as of 18:49, 20 February 2007

Summary

Function: llTriggerSound( string sound, float 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 );