Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

More llListen madness!

Lorenzo Ludovico
Registered User
Join date: 6 Feb 2005
Posts: 23
02-15-2005 12:07
Okay, I've built myself some semi-functioning spotlights for above my wrestling ring, but I've run into a little snag and it warrents a question.

For each spotlight, (usually 4), they are exactly the same. I have it set up so that when I say "lights on" on channel one, the beam of light swaps from being fully transparent to being a visible light.

My question is this.. since there are 4 spotlights, am I unneccessarily using up 4 llListens? Is there anyway to have one control script somewhere so that one llListen evaluates the responses and flips all the switches at once?

Please lend me a hand.
Upshaw Underhill
Techno-Hobbit
Join date: 13 Mar 2003
Posts: 293
02-15-2005 12:49
If they're within linkable distance you could link them and use linkmessages and only one listen.

L8r,
UU
JustAnother Millhouse
Registered User
Join date: 26 Dec 2004
Posts: 31
02-15-2005 13:37
From: Upshaw Underhill
If they're within linkable distance you could link them and use linkmessages and only one listen.

L8r,
UU


Agreed, link of possible and use MessageLinked to do this, if they are too far apart, can you place a single 100% transparent prim in the middle of them to allow for linking? (if you have a polygon shape and not just a huge straight line)
Dreamstalker Xevious
Registered User
Join date: 28 May 2004
Posts: 29
02-15-2005 14:52
In this particular case, wouldnt it even be easier if you had each of the lights linked, send messages through to each other, and instead of a llListen use the Touch event?

You can check the llDetected function to make sure that your the owner of the object so only you can turn it on, etc and have each of the objects have the exact same script. This would make it easier to maintain those scripts too cause you would ensure you wouldnt cross over other scripts that require llListen.

Just my two cents.
Lorenzo Ludovico
Registered User
Join date: 6 Feb 2005
Posts: 23
02-15-2005 15:19
From: Dreamstalker Xevious
In this particular case, wouldnt it even be easier if you had each of the lights linked, send messages through to each other, and instead of a llListen use the Touch event?


I would have already done that, but I'm also adding pyrotechnics and several other things that I need to synchonize and use voice commands quickly for fast display. Also, since the lights have other commands associated with them such as "pulse", "rotate", and "follow" orders, voice commands would be the most sensible.
Dreamstalker Xevious
Registered User
Join date: 28 May 2004
Posts: 29
02-15-2005 15:28
Ahh, I see... I only figured it was the one command you said.

Then perhaps you could have a controller device, that has the actual commands in it, that sends linked commands to the lights, and any other objects you link to it.

Good luck, message me in game when you get your wrestling ring together, would love to see it.
Lorenzo Ludovico
Registered User
Join date: 6 Feb 2005
Posts: 23
02-15-2005 16:03
From: Dreamstalker Xevious
Ahh, I see... I only figured it was the one command you said.

Then perhaps you could have a controller device, that has the actual commands in it, that sends linked commands to the lights, and any other objects you link to it.

Good luck, message me in game when you get your wrestling ring together, would love to see it.



Yeah, a controller would be another good idea, but I plan on altering the set in the future and making different variations on it, which would have different numbers of lights and different light postiions.

Most of set is already together including the ring, the stage, the videowall, the catwalk, and the pads outside of the ring. The main thing left to do is enhance the presentation. I'm usually on, I'll show you any time. :)