Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is this possible?

Badhawk Williamson
Junior Member
Join date: 18 Aug 2004
Posts: 4
08-27-2004 22:07
I run a club, and naturally some of the lights and particle FX in the club can be a bit laggy. Is there any sort of script to maybe disable all other scripts in a certain radius?I wanted to script a sort of lightswitch thing, so that if I touch it once it will turn off, then when I have a party or something I can just touch the switch again and there starts the partices and lights again. Is this possible? Is there anybody who would like to sell one to me if it is already made? Please help.
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
08-27-2004 22:18
While there is not a way to turn off a script in an external object, you could always have the particle blower react to the switch. I don't know how many you are talking, if it is just a few, have to turned off the particles on a certain command on a channel. If there is a lot, the listens might just make the problem worse - however there are more complex solutions that would not require active listeners.
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
08-27-2004 23:21
Yes, it's entirely possible.

However, your lag might be due to a badly coded particle system too. I could take a look at all of it for ya, code both the lightswitch and see if the particles are bad.

EDIT: I went in and looked. The Pink Flamingo, right?

Your particle systems are fine... there's just a lot of them. And yeah, the dance floor with it's 16someodd light prims are probably causing lag too. If you've got mod-rights on that dance floor, I can install a 'lightswitch'. Same with the particle systems, as long as you have the original particle system script.

Just... ow. My eyes bleed after that many particle systems. Don't you think that's a bit much? ('course, you might not realize it, if you've got 'lag' while looking at it. I can look at it and get a smooth 15ish FPS. No real lag there.)
_____________________
</sarcasm>
Badhawk Williamson
Junior Member
Join date: 18 Aug 2004
Posts: 4
08-28-2004 15:43
I got the problem solved, and yes, I know there were way too many particles in there. I wan't thinking, and wanted to see what it looked like with all of them going at once. Then I couldnt turn them off, but I just remade the floor real quick. I've reduced the lag 10 fold, so theres no real reason to have a lightswitch anymore, by installing better lights and less of them. Thanks for the help though!
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
08-28-2004 16:00
Well, just in case you need to know in the future...

llParticleSystem([]); will turn off particles (basically a particle system with no values whatsoever).

And you can use llSetPrimitiveParams() will let you change an object from Light to whatever.

You can use llListen() to switch things.
_____________________
</sarcasm>