HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

when unit gets killed does it automatically removed from memory ?

03-11-2005, 09:53 PM#1
Jackyquah
read title(Not Hero Unit)

+
if it's removed,
and I have unit global variable pointed to that killed unit. what happen if I used that variable without set it to other unit.
03-11-2005, 10:02 PM#2
Anitarf
As far as I know, the unit still exists in the memory. After all, it can still be resurrected by a Paladin. However, I do know some information is no longer stored about the unit when it dies, like buffs it had. But it's still there, why would there otherwise be a boolean condition "unit is dead", if you couldn't reference a dead unit anyway.

However, there is probably a very limited ammount of things you can do with a dead unit. You definitely can't give it any orders. The rest,... well, it depends, I suppose. If you are unsure about anything, you can always make a test map to try it out.
03-11-2005, 10:24 PM#3
Jackyquah
Even after the corpse of killed unit is gone, is it still in memory ?
03-12-2005, 04:08 AM#4
Raptor--
once the corpse is gone, afaik any reference to the unit is destroyed