Where do dead NPCs go when their cell resets?

Post » Wed May 18, 2011 6:39 pm

Anyone how dead NPCs' corpses are removed when their cells are reset? I did some testing and their references are still valid. Calling "GetDead" still returns "1" even though they have disappeared from the cell. Calling "GetDisabled" returns "0". So how are they removed from the cell?

Is there a way I can check whether they have been removed?
User avatar
xx_Jess_xx
 
Posts: 3371
Joined: Thu Nov 30, 2006 12:01 pm

Post » Thu May 19, 2011 6:06 am

Walk the cell's object list ?
User avatar
Adam Kriner
 
Posts: 3448
Joined: Mon Aug 06, 2007 2:30 am

Post » Thu May 19, 2011 3:20 am

Unfortunately I need to know whether an NPC has been reset outside of the current cell. I found an imperfect solution by checking if GetDead == 1 and if GetDeadTime == 0.

NPCs that have died and been reset will have a GetDeadTime of 0. Of course, this is less than ideal because it will also trigger for NPCs that have just died and haven't been reset.
User avatar
Carlitos Avila
 
Posts: 3438
Joined: Fri Sep 21, 2007 3:05 pm

Post » Thu May 19, 2011 12:23 am

You could put in a timer of 1 and check the GetDeadTime again. If its still 0, then you know.
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am


Return to IV - Oblivion