- Joined
- Aug 11, 2009
- Messages
- 605
First I will link the triggers:
All units does not respawn. Most works, but for example Banshees and Harpies wont respawn. They are owned by Neutral Hostile (just like other units that respawns like wolves) and has no special classification. Anyone has any idea why they dont respawn? Or if someone knows a good respawn system (or can make one) which works properly. I need something that respawns all units except those owned by Player 1-6 and also which are not Heroes.'
Thanks for any help on this, +rep will be awarded ofc
-
Creep Respawn Init
-
Events
- Map initialization
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to False)) and do (Actions)
-
Loop - Actions
- Set Integer_CreepRespawn = (Integer_CreepRespawn + 1)
- Unit - Set the custom value of (Picked unit) to Integer_CreepRespawn
- Set Point_Creeps[Integer_CreepRespawn] = (Position of (Picked unit))
- Set Facing_Creeps[Integer_CreepRespawn] = (Facing of (Picked unit))
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to False)) and do (Actions)
-
Events
-
Creep Respawn
-
Events
- Unit - A unit Dies
-
Conditions
- (Custom value of (Triggering unit)) Greater than 0
-
Actions
- Wait 30.00 game-time seconds
- Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at Point_Creeps[(Custom value of (Triggering unit))] facing Facing_Creeps[(Custom value of (Triggering unit))] degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
-
Events
All units does not respawn. Most works, but for example Banshees and Harpies wont respawn. They are owned by Neutral Hostile (just like other units that respawns like wolves) and has no special classification. Anyone has any idea why they dont respawn? Or if someone knows a good respawn system (or can make one) which works properly. I need something that respawns all units except those owned by Player 1-6 and also which are not Heroes.'
Thanks for any help on this, +rep will be awarded ofc