Difference between revisions of "LlStopSound"

From Second Life Wiki
Jump to navigation Jump to search
Line 14: Line 14:
     state_entry()
     state_entry()
     {
     {
         llLoopSound("string soundname or UUID", 1.0);
         llLoopSound("string soundname if in object inventory or UUID", 1.0);
     }
     }
     touch_start(integer total_number)
     touch_start(integer total_number)

Revision as of 19:44, 1 June 2009

Summary

Function: llStopSound( );
0.0 Forced Delay
10.0 Energy

Stops all attached sounds that are currently playing

Caveats

  • There is no way to stop a specific sound.

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();