Difference between revisions of "LlStopSound"

From Second Life Wiki
Jump to navigation Jump to search
m (only works for looped sounds)
m
Line 3: Line 3:
|func=llStopSound
|func=llStopSound
|func_footnote
|func_footnote
|func_desc=Stops the attached sound(s) currently playing, if they were started by llLoopSound
|func_desc=Stops the attached sound(s) currently playing, if they were started by [[llLoopSound]]
|return_text
|return_text
|spec
|spec

Revision as of 12:21, 17 September 2013

Summary

Function: llStopSound( );
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

<lsl> 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!!
   }

}

</lsl>

See Also

Functions

•  llSound This function has been deprecated, please use llPlaySound instead.
•  llPlaySound
•  llPlaySoundSlave
•  llLoopSound
•  llLoopSoundMaster
•  llLoopSoundSlave

Deep Notes

Signature

function void llStopSound();