- Joined
- Apr 13, 2008
- Messages
- 183
I see that very much people are asking for a good hero respawn so I made one that is like dota (with a timer that makes the hero respawn after seconds that you choose). You will need a variable of type unit with no aray(name is herorespawn)
- Respawn
- Events
- Unit - A unit Dies
- Conditions
- ((Triggering unit) is a Hero) equal to True
- (Owner of (Triggering unit)) equal to Player 1 (Red)
- Actions
- Set herorespawn = (Triggering unit)
- Countdown Timer - Start (last started timer) as a One-shot timer that will expire in (here you put the time. It maybe an arithmetic. I used max life + max mana / 180. This way it will be good for each level.)
- Countdown Timer - Create a timer window for (last created timer) With title (here you put a tittle).
- Wait (here you do the arithmetic you did on the countdown timer so when the Timer expires the hero revives) seconds
- Hero - Revive herorespawn at (center of (your region) <gen>), Show revival graphics
- Countdown Timer - Destroy (last created timer window)
- Countdown Timer - Change the color of the title for (last created timer window) to (100.00%, 12.00%, 64.00%) with 0.00% transparency
Last edited: