http://www.gamesas.com/topic/1349649-dynamically-attaching-scripts-to-actors-near-the-player/
I think the second method would work for you. Just change the match conditions to "GetDead == 1" and "HasKeyword ActorTypeNPC == 1". Then you just attach a script with an OnHit event:
Scriptname fg109TestAliasScript extends ReferenceAliasStatic Property TombStone AutoWeapon Property Shovel AutoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) if (akAggressor == Game.GetPlayer() && akSource == Shovel) GetReference().Disable() GetReference().PlaceAtMe(TombStone) endifEndEvent