Maggie Morgan
The Fish Lady
Join date: 26 Mar 2004
Posts: 97
|
01-13-2006 07:27
I was wondering if any of the Script Guru's would care to share a simple sound loop script? I have a single sound that I would like to have loop continuously. I have searched the Wiki and the Forums for an example but no luck. Thanks in advance!
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
01-13-2006 08:10
I don't have one, but this might give you all the help you need.
|
Maggie Morgan
The Fish Lady
Join date: 26 Mar 2004
Posts: 97
|
01-13-2006 08:17
Ummm I reasearched everything I could and found that. Unfortunately when you have no clue about syntax, this is not very helpful. But thank-you anyway.
|
Arrekusu Muromachi
SL Fighter Ace
Join date: 20 Feb 2005
Posts: 32
|
01-13-2006 09:17
Forgive me as I am a noob myself when it comes to PHP coding so I won't be able to post that nice little PHP box to contain a code but here's how to take it.
default state_entry() { llLoopSound("sound name or key",1); }
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
01-13-2006 09:53
Sorry Maggie, misunderstood what you were looking for. Arrekesu's script should work just fine. Arrekesu you use [*php] and [/*php] tags (without the *'s which are there to stop the page coding them that way only). For a more general one that will work with any sound you drop in something like this might work but make sure you put the sound in first: default { state_entry() { llLoopSound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0); } }
|
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
|
01-13-2006 10:06
you can also just use [*CODE] [/*CODE]
|
Maggie Morgan
The Fish Lady
Join date: 26 Mar 2004
Posts: 97
|
They both worked!!!
01-13-2006 10:39
Thank-you, thank-you, thank-you both!
|