• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Creeps respawnings

Status
Not open for further replies.
Level 2
Joined
Oct 19, 2005
Messages
6
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.
 
Level 3
Joined
Aug 16, 2005
Messages
32
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.
Top