Get ActorIsDead - How to detect a dead corpse?

Post » Fri Jan 04, 2013 10:15 am

I'm planing on a new mod to let corpses disappear, or put the corpse in your inventory so you could deport it to somewhere else. I'd also understand how to set up a script to do all of this...for a single actor/NPC/creature. But the problem is I want to split it up into different functions aka:

Function IsCorpseHuman()Function IsCorpseCreature()Function IsCorpseBeast()

...and affect all Race types with it. Ive gotten so far to realize that http://www.creationkit.com/GetRace_-_ActorBase is my thing to try, but then, how would I determine if a actor/creature is dead the moment I open up his inventory. http://www.creationkit.com/OnActivate_-_ObjectReference or http://www.creationkit.com/OnContainerChanged_-_ObjectReference?

It could be easy by just attaching a script to a race, but races do not allow to attach scripts to them. Any ideas?

The idea behind the mod is to bring dead deer and prey to inns and sell them, rather then just taking all the good parts of a corpse without any sign of the corpse have been changed.
User avatar
Inol Wakhid
 
Posts: 3403
Joined: Wed Jun 27, 2007 5:47 am

Return to V - Skyrim