• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Creeps respawnings

Status
Not open for further replies.

Infected

I

Infected

Hi

Ok, I am making a rpg map and creeps that are killed should respawn after 2 minutes at the same position as the dead ones stood from the start. These creeps are in groups of 2-5 units per group and they shall not respawn untill the last one of them is dead.

My idea to this was something like:
event: a unit dies
condition: unit group "creeps[intergerA]" has no living creeps in it
action: Pick every unit in creeps[intergerA] and do actions: Create 1 (unit type of picked unit) at region creepregion[intergerA]

I soon realized that regions couldn´t have integers in them, and as the creeps can follow heroes for a bit it cant be: Create 1 (unit type of picked unit) at position of dying unit.

Need help. How to make this work?

Forgive my bad english.
 
You could make it like this:

Event-unit dies
confition-unit equal to (put the unit here)
action-wait 2 min, then spawn (same unit) at place of triggering unit

You could also set the condition so all units in group has to be killed first before they spawn.
 
Status
Not open for further replies.
Back
Top