- Joined
- Sep 19, 2020
- Messages
- 190
I need trigger for hero respawn when hero dies
You need to use Triggering Unit instead of Dying unit/Reviving Hero. Also, you're leaking Points, but if you don't care about memory leaks then don't worry about it.you can avoid the Wait 30 Seconds with a event Timer Expires and then Revive the Hero
It's work like DotA map?
Revive1
Events
Unit - A unit owned by Player 1 (Red) Dies
Conditions
((Dying unit) is A Hero) Equal to Wahr
Actions
Countdown Timer - Start ReviveTimer1 as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for ReviveTimer1 with title ((Name of (Owner of (Dying unit))) + Revive)
Set VariableSet ReviveWindow[1] = (Last created timer window)
Wait 30.00 seconds
Countdown Timer - Destroy ReviveWindow[1]
Countdown Timer - Hide ReviveWindow[1]
Camera - Apply Camera 002 <gen> for (Owner of (Dying unit)) over 0.00 seconds with ease in time: 0.00 seconds, ease out time: 0.00 seconds, and smooth factor: 0.00
Hero - Instantly revive (Dying unit) at (Center of Base <gen>), Show revival graphics
Unit - Set mana of (Reviving Hero) to 100.00%
No as DotA Allstars adds a revive time penalty for every death. I think it was 5 seconds last time I played. This would need to be tracked with variables, possibly on a per-player basis such as by using an array to map player slot number to their revive time or additional revive time. This can be incremented on every death.It's work like DotA map?
How to do that?No as DotA Allstars adds a revive time penalty for every death. I think it was 5 seconds last time I played.