Warcraft III resources & community, 2003–2006 · archived

monster spawning without major lag

3 posts
#1

monster spawning without major lag

i need a trigger that will make it so when my monsters spwan every 30 seconds it will eventually stop when there is a set amount of units.

(you cant say i didnt lokk through previous posts for the answer to this because i did this time)
#2

Re: monster spawning without major lag

tay300i need a trigger that will make it so when my monsters spwan every 30 seconds it will eventually stop when there is a set amount of units.

(you cant say i didnt lokk through previous posts for the answer to this because i did this time)


You should use If\Then actions with a condition that checks the amount of units currently on the map.

Also, I have found it useful to convert the trigger to custom text to reduce lag and memory leaks. Be sure to make a copy of the trigger first, just in case you have to edit it again.
#3
Make a unit-group called enemies, and add every spawn into it. Then make an if-else function to see if that group is > X if it is, then stop the spawning trigger until X units died.