How can I make corpses dissapear sooner?

Post » Fri May 27, 2011 9:41 pm

Title says it all really.

I want corpses to dissapear after a few hours instead of on cell reset.

Only thing I can think of is a script that disables the dead NPC after a time limit OnDeath. But that would mean putting the script on all NPC's which I don't wanna do.
User avatar
Cool Man Sam
 
Posts: 3392
Joined: Thu May 10, 2007 1:19 pm

Post » Sat May 28, 2011 7:25 am

Drop a token on them that moves them to a hidden cell after the time limit is up.
User avatar
jasminĪµ
 
Posts: 3511
Joined: Mon Jan 29, 2007 4:12 am

Post » Fri May 27, 2011 10:22 pm

Drop a token on them that moves them to a hidden cell after the time limit is up.

Is there an easy way to do that, that doesn't involve a script added to every NPC?
User avatar
Marnesia Steele
 
Posts: 3398
Joined: Thu Aug 09, 2007 10:11 pm

Post » Fri May 27, 2011 7:00 pm

You only need to create a script for the token.

Use an OBSE reference walking function to identify all the actors around the player and give them a token.

Use GetContainer to identify the reference to the NPC that now has the token, then monitor them for when they're dead, start your count and do the removal after the appropriate amount of time.

Several mods already do this kind of thing. Duke Patrick's Fresh kills mod, probably Reneer's Corpse Mod as well.
User avatar
M!KkI
 
Posts: 3401
Joined: Sun Jul 16, 2006 7:50 am


Return to IV - Oblivion