Hildagarn
Member
- Reaction score
- 20
Code:
Actions
A unit dies
Conditions
Dying unit Equal to hero is True
Actions
Wait 30 seconds
Revive Dying unit at center of (my region)
Actions
A unit dies
Conditions
Dying unit Equal to hero is True
Actions
Wait 30 seconds
Revive Dying unit at center of (my region)
But, he wants a wait, you see, hmm? Use "Triggering Unit" instead of "Dying Unit", and it should work.
Hero Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set ReviveLOC = (Center of Revive <gen>)
[B][COLOR="Blue"] Wait - 30 seconds[/COLOR][/B]
Hero - Instantly revive (Triggering unit) at ReviveLOC, Show revival graphics
Set ReviveLOC = (Position of (Reviving Hero))
Camera - Pan camera for (Owner of (Reviving Hero)) to ReviveLOC over 0.60 seconds
Custom script: call RemoveLocation(udg_ReviveLOC)
Selection - Select (Reviving Hero) for (Owner of (Reviving Hero))
Resurrection
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
[B]Wait 10.00 seconds[/B]
Set ReviveLOC = (Center of Revive <gen>)
Hero - Instantly revive (Dying unit) at ReviveLOC, Show revival graphics
Camera - Pan camera for (Owner of ([B]Dying unit[/B])) to ReviveLOC over 0.60 seconds
Custom script: call RemoveLocation(udg_ReviveLOC)
Selection - Select ([B]Dying unit[/B]) for (Owner of ([B]Dying unit[/B]))
I'm pretty sure that it doesn't work because "dying unit" gets overwritten if another unit dies during the wait period. I must have forgotten to mention that earlier.
It's because 30 seconds is too long and the corpse will be gone and the dying unit won't apply.
Store the Dying unit in a variable first is all you have to do, then Revive him using the Variable.