So I've read a bunch of tutorials on how to make creeps respawn, but I am having a problem with them as it makes them respawn absolutely no matter what every time, even if you have any units loitering around. If I have dead Ogre Lords next to a goldmine and I build my base there, I don't want the Ogre Lords to suddenly come back and start destroying my peasants. On the same note, if my base gets demolished or I move it and everyone clears out, I want the Ogre Lords to come back then and repopulate the place.
Is there any way to add a condition to the usual creep spawn system that does something like
If - A unit is within 512 of Dying Unit
Then - Don't Rez after X seconds.
Else - Rez after X seconds.
But have it keep checking to see if there is no one around that spot every X seconds or so, to see if its okay to respawn them yet or not?
Is there any way to add a condition to the usual creep spawn system that does something like
If - A unit is within 512 of Dying Unit
Then - Don't Rez after X seconds.
Else - Rez after X seconds.
But have it keep checking to see if there is no one around that spot every X seconds or so, to see if its okay to respawn them yet or not?