Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

jet pack script help

johnny Sporg
Registered User
Join date: 13 Jan 2009
Posts: 4
03-07-2009 14:32
hi, i've been using this jet pack script from this website, http://www.slforum.com/forum/showthread.php?p=637 and i can't seem to make the sound stop when not in flight. is there any way to change that? Or remove it altogether?

I'm using them in shoes for Shadow the Hedgehog avatar I'm making. Thx
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-07-2009 15:05
If you want to remove the sound altogether, then just delete the llLoopSound function at the top of the script. That's easy. If you just want to kill the sound when you're not flying, it looks as if you can add a llStopSound command at the end of the timer event, like so .....

CODE

else
{
flying = FALSE;
llStopSound(); // <<-- ADD IT HERE -----------
llMessageLinked(LINK_SET, 0, "nofly", "");
llParticleSystem([]);
}


Give it a try.

EDIT: It looks like you'll have to toggle sound on again deliberately when you start flying. That means adding a llLoopSound command just above that spot, like this ....

CODE


flying = TRUE;
llLoopSound("boom", 1.0); // <<----- ADD IT HERE -------
llMessageLinked(LINK_SET, 0, "fly", "");
//..................IDLE............................ ...
johnny Sporg
Registered User
Join date: 13 Jan 2009
Posts: 4
03-07-2009 15:25
thx for the quick reply, i'll try that.

hmm, it seems the sound clip playing over and over when flying isn't an attractive idea as I once thought. Instead, I'll just cut it out completely.

Can you tell me which lines to cut so that I don't mess any thing else up in the script? Just want the sound gone and it to stop looking for a sound clip. I deleted the sound file already.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
03-07-2009 21:23
There's only one llLoopSound command in the whole script. Delete it.