HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question: Does war3 assign you a new hero...?

01-07-2004, 01:04 AM#1
weaaddar
When you revive a dead hero does it create a new unit for the revived unit? Or do they still share the same unit object identifier?
01-07-2004, 02:00 AM#2
DoCa-Cola
I think it's the same.
01-07-2004, 10:30 AM#3
MartinezTG
Of course it's the same identifier. Otherwise for each hero revive you'd have to assign a previously set unit variable to the hero after reviving once again. But you don't.

Martinez
01-07-2004, 11:29 AM#4
akiross
maybe this unit is in gamecache?i think
01-07-2004, 12:07 PM#5
Captain Griffen
It is still the same unit.

It is saved like all over units are, only it has 'dead' option active when saved, but hero dead.
01-07-2004, 01:55 PM#6
Vexorian
The hero is revived, so it is still the same, if you take a look the altar revive is a unit target order, When A unit dies it still exists that happens with heroes two , otherwise it would be difficult to make a map with a Heroes array pointing to heroes
01-07-2004, 03:59 PM#7
FyreDaug
I'm 100% sure it is the same.
01-08-2004, 12:54 AM#8
weaaddar
Right I did a comparision check using the return bug and they both have the same integral value.
01-16-2004, 05:35 AM#9
TKlord
And so does any unit until the corpse is decayed.

Check that... Resurrected( revieved ) unit remains in it's control group :)