Difference between revisions of "LlTriggerSoundLimited"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=212|func_sleep=0.0|func_energy=10.0|func=llTriggerSoundLimited|p1_type=string|p1_name=sound|p2_type=float|p2_name=volume|p3_type=vector|p3_name=tne|p4_type=vector|p4_name=bsw|func_footnote=plays sound at volume (0.0 - 1.0), centered at but not attached to object, limited to AABB defined by vectors top-north-east and bottom-south-west|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=212|func_sleep=0.0|func_energy=10.0
|func=llTriggerSoundLimited|sort=TriggerSoundLimited
|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)
|p3_type=vector|p3_name=top_north_east
|p4_type=vector|p4_name=bottom_south_west
|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, limited to the box defined by vectors '''top_north_east''' and '''bottom_south_west'''
|return_text
|spec
|caveats
|constants
|examples
|helpers
|also_functions=*{{LSLG|llPlaySound}}
*{{LSLG|llTriggerSound}}
|also_tests
|also_events
|also_articles
|notes
|permission
|inventory=sound
|negative_index
|cat1=Sound
|cat2
|cat3
|cat4
}}

Revision as of 11:44, 14 February 2007

Summary

Function: llTriggerSoundLimited( 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, vector top_north_east, vector bottom_south_west );
0.0 Forced Delay
10.0 Energy

Plays sound at volume, centered at but not attached to object, limited to the box defined by vectors top_north_east and bottom_south_west

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

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

Signature

function void llTriggerSoundLimited( string sound, float volume, vector top_north_east, vector bottom_south_west );