Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Randomly Triggered Sounds in On_Rez?

Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
04-22-2005 23:29
So I'm building Yet Another Plane and in the on_rez container, I've got the following:

CODE
    
on_rez(integer smeg)
{
llPlaySound("sound-name",1);
llSay(0,"The text of sound-name");
}


Plus a few other things unrelated to sounds. But when I rez the sucker, it plays "sound-name" four or five times with pauses of seemingly random length inbetween them. This is the only place in the script where this sound is called.

Any ideas why it plays the sound byte multiple times? It is kinda annoying. 8)
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
04-23-2005 02:03
From: Kage Seraph
Any ideas why it plays the sound byte multiple times? It is kinda annoying. 8)

Hi Kage,

I don't think it's your code - I think "someone" screwed up something in the LSL event model. I have similar effects from the remote_data event which are from a newly (1.6.x) introduced BUG. *edit - which I have reported in full - end edit*

/esc
_____________________
http://slurl.com/secondlife/Together
Meatwad Extraordinaire
Nomnomnom
Join date: 6 Aug 2004
Posts: 545
04-23-2005 08:23
Well, if you could give us the surrounding code, then maybe I can help you. If not the I have a random sound script that is activated when touched and I could turn it into one that plays when rezzed. If not, it just MAY be the event structure! :confused: :mad: :eek:
_____________________
LeVey Palou
Registered User
Join date: 31 Aug 2006
Posts: 131
plz post
11-12-2006 07:50
Meatwad

Could you please post that script i could use it.

Thanks