skullkidd
New Member
- Reaction score
- 7
Alright so I have tried many creep re spawning methods. And they all pretty much work but there are certain things that aren't working like I would like.
The problems i am having are:
When creep heroes re spawn they go back to level one and they don't have the same items anymore.
Here is what i used...
trigger 1
trigger 2
Also im not sure if this is a bug or not, but some of the units even don't respawn.
Thanks for any help
The problems i am having are:
When creep heroes re spawn they go back to level one and they don't have the same items anymore.
Here is what i used...
trigger 1
Code:
Creep Revival System Initialization
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
Loop - Actions
Set Integer = (Integer + 1)
Unit - Set the custom value of (Picked unit) to Integer
Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
trigger 2
Code:
Revive Creeps 1 by 1
Events
Unit - A unit Dies
Conditions
((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
Actions
Wait ((Real((Level of (Triggering unit)))) x 30.00) game-time seconds
Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Also im not sure if this is a bug or not, but some of the units even don't respawn.
Thanks for any help