• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Creep Respawn System Condition - No One Around?

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2007
Messages
201
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?
 
Status
Not open for further replies.
Top