|
Bridget Leavitt
Registered User
Join date: 17 Dec 2006
Posts: 12
|
07-14-2008 17:40
Anyone having a issue with the basic Sound entry?
Plays fine when the script is reset, but wont play anything when its taken back into inventory then rezed. Others too can hear the sound when the script is reset, but again not when the object is rezzed.
Ive done this a number of times in the past just fine... :\
default { state_entry() { llPlaySound("cf6d864b-b642-60a3-0a3c-83d15bf099ea",1.0); } }
|
|
Talon Brown
Slacker Punk
Join date: 17 May 2006
Posts: 352
|
07-14-2008 18:15
Umm, if you only want to play the sound once upon rezzing the object, you need to call llPlaySound() from the on_rez() event, not state_entry() which is only called when the script is reset or enters that state. If you want a looping sound effect, you could use llLoopSound() in state_entry() and it would continue to play until stopped with llStopSound().
|
|
Bridget Leavitt
Registered User
Join date: 17 Dec 2006
Posts: 12
|
07-14-2008 20:30
Ack!
You're so right. I totally missed that line. I think when i was doing this before it was using the llLoopSound.
Thanks! =D
~ B
|