Scriptname BIS_OnActivateCorpse extends ObjectReference  

Event Onload()
Actor selfActor = (self as ObjectReference) as Actor
	selfActor.AllowPCDialogue(false)
EndEvent

Event onactivate(ObjectReference akActionRef)
Actor selfActor = (self as ObjectReference) as Actor
ActorBase selfActorBase = SelfActor.GetActorBase()
	If SelfActorBase.getsex() == 0
	Debug.messagebox ("It seems He's been already dead. There is nothing that I can do about it.")
	ElseIf SelfActorBase.getsex() == 1
	Debug.messagebox ("It seems She's been already dead. There is nothing that I can do about it.")
	EndIf
	selfActorBase.SetEssential(False)
	Utility.wait(1.0)
	selfActor.Kill()
EndEvent