Difference between revisions of "LlStopSound"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Lady Sumoku (talk | contribs) m (Replaced old <LSL> block with <source lang="lsl2">) |
|||
(16 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LSL_Function | ||
|func_id=92|func_sleep=0.0|func_energy=10.0 | |||
|func=llStopSound | |||
|func_footnote | |||
|func_desc=Stops the attached sound(s) currently playing, if they were started by [[llLoopSound]] | |||
|return_text | |||
|spec | |||
|caveats=*There is no way to stop a specific sound. | |||
*In a linked set it will only stop the sound from the prim the script is in. | |||
|constants | |||
|examples= | |||
<source lang="lsl2"> | |||
default | |||
{ | |||
state_entry() | |||
{ | |||
llLoopSound("string soundname if in object inventory or UUID", 1.0); | |||
} | |||
touch_start(integer total_number) | |||
{ | |||
llStopSound();//As if by magic the sound stops!! | |||
} | |||
} | |||
</source> | |||
|helpers | |||
|also_functions= | |||
{{LSL DefineRow||[[llSound]]|3=This function has been deprecated, please use [[llPlaySound]] instead.}} | |||
{{LSL DefineRow||[[llPlaySound]]}} | |||
{{LSL DefineRow||[[llPlaySoundSlave]]}} | |||
{{LSL DefineRow||[[llLoopSound]]}} | |||
{{LSL DefineRow||[[llLoopSoundMaster]]}} | |||
{{LSL DefineRow||[[llLoopSoundSlave]]}} | |||
|also_tests | |||
|also_events | |||
|also_articles | |||
|notes | |||
|deprecated | |||
|cat1=Sound | |||
|cat2=Stop | |||
|cat3 | |||
|cat4 | |||
}} |
Revision as of 12:41, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llStopSound( );92 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Stops the attached sound(s) currently playing, if they were started by llLoopSound
Caveats
- There is no way to stop a specific sound.
- In a linked set it will only stop the sound from the prim the script is in.
Examples
default
{
state_entry()
{
llLoopSound("string soundname if in object inventory or UUID", 1.0);
}
touch_start(integer total_number)
{
llStopSound();//As if by magic the sound stops!!
}
}
See Also
Functions
• | llSound | – | This function has been deprecated, please use llPlaySound instead. | |
• | llPlaySound | |||
• | llPlaySoundSlave | |||
• | llLoopSound | |||
• | llLoopSoundMaster | |||
• | llLoopSoundSlave |