HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ressurecting unit with triggers

01-21-2006, 10:39 AM#1
qwertyui
I am looking for a way to set a specific unit, which is flagged as "dead" and has already decayed to a corpse back to "alive" and full hp status.

The catch is: i cannot use Ressurection skill for it, and i cannot replace the dead unit with new unit of the same unit-type, because i absolutely need to keep the original unit.

Any ideas?
01-21-2006, 11:03 AM#2
iNfraNe
Don't let him die. Just pretend like he's dead.
01-21-2006, 11:24 AM#3
qwertyui
Not an option :/
01-21-2006, 12:15 PM#4
Anitarf
Explaining a bit what you need this for and why some things are not an option would help.
01-21-2006, 12:16 PM#5
Earth-Fury
cant be done without the use or replacement or the resurection spell. (unless its a hero)
01-21-2006, 12:24 PM#6
Vexorian
You have to make a dummy unit cast ressurection, there is no other way to revive a unit correctly.

Although you could just create a new one that is alive and remove the dead one?
01-21-2006, 12:27 PM#7
Earth-Fury
Quote:
Originally Posted by Vexorian
You have to make a dummy unit cast ressurection, there is no other way to revive a unit correctly.

Although you could just create a new one that is alive and remove the dead one?
Quote:
Originally Posted by qwertyui
The catch is: i cannot use Ressurection skill for it, and i cannot replace the dead unit with new unit of the same unit-type, because i absolutely need to keep the original unit.

vex, i really expect better from you

but you are still correct
01-21-2006, 01:06 PM#8
Vexorian
Then the guy is screwed simple as that
02-07-2006, 07:41 AM#9
Guest
How about storing the dead unit in a unit-variable and then ressurecting it with "create unit" using that variable?

E: MyUnit Dies
A: Set Variable 'DeadUnit' = 'MyUnit'

And then ressurection.

A: Create 1 'DeadUnit' at location facing angle
02-07-2006, 09:41 AM#10
qwertyui
CreateUnit does not take specific units, only unit-types.

So the end solution is:
1) move all the dead units to be rezzed to some secluded region with a dummy rezzer in it.
2) make dummy rezzer cast ressurect
3) move them to their appropriate post-ressurection positions.
02-08-2006, 06:41 AM#11
Mystic Prophet
Um what about the game cache. you could store him into the game cache when he dies. and then restore him later on.