killbuzz
Member
- Reaction score
- 9
So I've been using Tinki3's creep respawn system and I am having a problem with making so that the unit will not respawn until there are no enemy units in the area, and a timer of 45 seconds has run out.
Here's what I have so far
The if-then-else condition is what needs to be fixed.
I also changed it so that its brown's units that get revived, not creep's.
Here's what I have so far
Trigger:
- Revive Creeps 1 by 1
- Events
- Unit - A unit owned by Player 12 (Brown) Dies
- Conditions
- And - All (Conditions) are true
- Conditions
- ((Triggering unit) is Summoned) Equal to False
- ((Triggering unit) is A Hero) Equal to False
- Conditions
- And - All (Conditions) are true
- Actions
- Wait 45.00 game-time seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in (Units within 500.00 of (Position of (Dying unit)) matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))) Equal to 0
- Then - Actions
- Unit - Create 1 (Unit-type of (Triggering unit)) for Player 12 (Brown) 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))
- Else - Actions
- Trigger - Run (This trigger) (checking conditions)
- If - Conditions
- Events
The if-then-else condition is what needs to be fixed.
I also changed it so that its brown's units that get revived, not creep's.