It seems when using this script, the unit that is revived starts as invulnerable, and regains 100% life after 5 seconds. Is this correct?
This is a problem because im making a sort of a hero arena where you revive at a random location on the map. This means i have to pause the unit for 5 seconds before releasing it back to the fight. This gives the opponenets an advantage, as they can aim they're AoEstuns or whatever and fire them as soon as the hero comes back into play. :/
EDIT: Nevermind, i can just move the hero AFTER this effect has worn out and then make it vulnerable again.
It seems when using this script, the unit that is revived starts as invulnerable, and regains 100% life after 5 seconds. Is this correct?
This is a problem because im making a sort of a hero arena where you revive at a random location on the map. This means i have to pause the unit for 5 seconds before releasing it back to the fight. This gives the opponenets an advantage, as they can aim they're AoEstuns or whatever and fire them as soon as the hero comes back into play. :/
EDIT: Nevermind, i can just move the hero AFTER this effect has worn out and then make it vulnerable again.
@anachronism: Go
Oh, i didnt know there were a custom script as an action. Thought you'd had to make your own function. Ty! :)
I do not know how to use custom code properly, is there any way to revive a hero by built in actions (in the trigger editor)?