HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem with using a wait inside of a loop

08-23-2003, 08:32 AM#1
ImustDIE
In the attached map, instead of using regions to create creep spawns I am using a certain type of unit, to simplify adding creep spawns. I have it all working just fine besides one thing, under the 'creeps -> spawn creeps' trigger I added in a wait so that the creeps wouldnt be created until a certain animation was finished, but all of the code after the wait simply never gets executed. To check out the results of the trigger, just start the map and scroll up the dead forest, there are two summoners up there. They cast portals and units are supposed to spawn from them, but I don't want the units to appear until the 'birth' animation is complete.

And, if you're in the mood for one more question... In the map you can build castle walls, but underneath wall piece there is a small patch of dirt, how do I go about getting rid of that?
08-23-2003, 08:40 AM#2
Draco
Don't use waits in loops; they won't work how you want them to.
08-23-2003, 09:09 AM#3
ImustDIE
Do you have any other suggestions as to how I could do what I'm trying to accomplish?
08-23-2003, 01:33 PM#4
jeffsu
I've also seen waits in loops cause server splits....another good reason not to use them.
08-23-2003, 05:32 PM#5
element_5
I've got waits in loops to work successfully when using a local variable as the loop's control variable. You have to use JASS of course, but I'm not at a computer that has WC3 so I can't really show you. If you want to download my Oil System triggers (they're in the Trigger Repository) there is in example there. Look for the trigger "Gather Oil" I believe.