HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Special Effects Question

11-12-2002, 08:41 PM#1
Guest
I was reading through the battle.net map development forums and came across a post that stated that even though you might be using a special effect that ends automatically, you still have to destroy it, because even tho you can't see it, it still exists and can needlessly take up large amounts of memory. Is this true?
11-12-2002, 09:28 PM#2
Kerry
yep.
11-12-2002, 11:45 PM#3
Guest
In that case does anyone know of a good way to handle the problem I posted at the battle.net forums:

On all 4 sides of my map I have a crypt doodad with a region
placed directly in front of it that transports the triggering unit
to the other side, acting as a custom warp gate. Pretty simple so
far.. but then i wanted to have a special effect occur everytime
the unit walked into the region, a sort of teleportion effect. The
mass teleport special effect would probably be pretty simple
because its a special effect with a duration, but such an effect
wouldnt really work with the theme of my map. Messing around with
all the different effects, I was particulary drawn to the unsommon
building effect (having it occur everytime the unit was
transported.) The problem with that effect is that it doesnt end
unless you set up an action to destroy the effect. Seeming simple
enough I set up an action to destroy the last created effect right
after the action of creating the effect. I tested it and did not
like the fact that you didnt really get to see the effect, it was
just a green flash. So I added a .5 second delay in between the
time that the effect was created and destroyed and it worked. I ran
my units into the warp gate and everything worked great. Then i ran
my map with a fully functional customized AI, where a number of
units are ordered to walk into the warp gate. This is where I got
stuck. With that many units walking into several warp gates at one
time the .5 second delay is plenty of time to allow other special
effects triggers to run. Causing the destroy last created special
effect action (which is really the only avaiable action for
destroying special effects) to become obselete. I started fiddling
around with variables and arrays trying to fix the problem, but
with no real luck. So if anyone has any ideas please respond ASAP.
Thanks
11-12-2002, 11:56 PM#4
ph33rb0
Oh jeez. Thanks for letting me in on this guys. I had no idea about that. :D