llStopSound()
Stops the sound playing in the prim the script is running in.
llPlaySound, llLoopSound, and similar. Does not work for llTriggerSound or llTriggerSoundLimited.llStopSound(); // stops a running sound
This script will start a looped sound when it is touched, and stop it when it is touched again.
integer sound; default { touch_start(integer n) { sound = !sound; if (sound) // Start the Jetpack looped sound at full volume. llLoopSound("67f5e4f0-0534-4d97-bc01-f297648d20e0", 1.0); else // Stop it llStopSound(); } }
llPlaySound plays a sound in this prim.llLoopSound plays a looped sound in this prim.llLoopSoundMaster plays a looped sound letting others synchronize with it.llLoopSoundSlave plays a looped sound synchronized with a master.llPlaySoundSlave plays a sound synchronized with a master.llAdjustSoundVolume adjusts the volume of a sound playing in this prim.llSetSoundRadius adjusts how far the prim sounds can be heard.llSetSoundQueueing adjusts whether sounds are enqueued in this prim.llTriggerSound "drops" a sound where the prim is.llTriggerSoundLimited "drops" a sound where the prim is, with limited reach.llPreloadSound causes a sound to be preloaded, for faster playing.llSound plays a sound in this prim (deprecated - use llPlaySound instead).llSoundPreload causes a sound to be preloaded (deprecated - use llPreloadSound instead).