HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need some help with a big trigger

03-29-2005, 01:15 AM#1
Lil Blue Smurf
I have gone ahead and transfered the relevent stuff over to this demo map. I have been messing with it for a couple days and I can't see what I am over looking.

What is supposed to happen when a button is pushed:
Button and surrounding change state (does this fine)
Lightning is created or destroyed between affected buttons (this is bugged)

I have gone over the code and I must just be missing something or have flawed logic. For some reason lightning ocassionally doesn't get created where it should, or gets destroyed where it shouldn't... even between buttons that aren't even near those affected.

So if someone can look through the code and help me out I would greatly appreciate it. I know it is a lot of junk to sort through, but I tried to keep it as clean as possible ( I am a coding newbie still). I'll be sure to stick your name in the map credits.
03-29-2005, 02:51 PM#2
PitzerMike
I've looked at it, but I'm sorry I couldn't find any obvious system in the order the lightning is created. I have no clue when lightning is supposed to appear and disappear.
03-29-2005, 03:01 PM#3
Lil Blue Smurf
The lightning is supposed to appear between white or 'on' switches and disapear when one end of it connects to an 'off' or dark switch. So the only time lightning should be there is between two on switches. Is that what you mean? Or do you mean my code is so bad you can't tell what is going on (which I would totally understand)?