Advena
Just casually observing atm ;)
- Reaction score
- 42
Yo.
Have a look:
As you see I haven't bothered to make a separate timer for every player.
The question is:
If another hero die before the first is respawned, the timer for the first one should be kinda messed up, right?
~~
Have a look:
Code:
Respawn Timer Start
Events
Unit - A unit Dies
Conditions
((Dying unit) is in All_User_Heroes) Equal to True
Actions
Countdown Timer - Start Respawn_Timer as a One-shot timer that will expire in (((Real((Level of (Dying unit)))) + 2.00) x 3.00) seconds
Countdown Timer - Create a timer window for Respawn_Timer with title Respawn in
Set Respawn_TimeWindow = (Last created timer window)
Countdown Timer - Show Respawn_TimeWindow for (Owner of (Dying unit))
[COLOR="LightBlue"]_[/COLOR]
Code:
Respawn Timer End
Events
Time - Respawn_Timer expires
Conditions
Actions
Wait 2.00 seconds
Countdown Timer - Destroy Respawn_TimeWindow
Countdown Timer - Hide Respawn_TimeWindow for (Owner of (Dying unit))
(and then I respawn the hero. I haven't made the actions for that yet
As you see I haven't bothered to make a separate timer for every player.
The question is:
If another hero die before the first is respawned, the timer for the first one should be kinda messed up, right?
~~