I've been trying for hours to revive a hero i have created.
I have found an abillity called CAbilRevive and i have tryed to create a new abillity based upon that, but no luck so far getting it to work with my hero.
I have looked everywhere for that in triggers, but the closest i could get to anything about reviving is and event called Unit Is Revived.
So my conclusion is that it has to be done somehow using abillities. I could be wrong though ;)
Hi!
I've been trying for hours to revive a hero i have created. I have found an abillity called CAbilRevive and i have tryed to create a new abillity based upon that, but no luck so far getting it to work with my hero.
I hope anyone can help me here.
Cheers
@Heu: Go
In warcraft 3, you could revive a hero via triggers. I dunno about the sc2 editor. I will post more when I get back to my computer with SC2 on it.
I have looked everywhere for that in triggers, but the closest i could get to anything about reviving is and event called Unit Is Revived. So my conclusion is that it has to be done somehow using abillities. I could be wrong though ;)
I was looking for the same thing and couldn't find it in GUI, there seems to be a native for this in the galaxy code:
But I haven't tested it yet.
Im trying to call UnitRevive (gv_test); every time a unit dies
gv_test is a unit variable with my unit in it.
unit gv_test;
void InitGlobals () {
gv_test = UnitFromId(1);
}
doesn't seem to work though.