Mod to bury corpses

Post » Thu Jun 21, 2012 6:06 pm

I'm new with Creating Kit, and decided to start with simple (as I though) task: mod that allows player to bury corpses.

So, I have a dead NPC, and would like to bury it. But now Im not sure how to do it.

I could let player attack corpse with shovel, like an ore. And then replace NPC object with tombstone, or hide it and place tombstone on the same position.

What would you suggest?

THank you!
User avatar
jasminε
 
Posts: 3511
Joined: Mon Jan 29, 2007 4:12 am

Post » Thu Jun 21, 2012 4:25 pm

Lol, when I first read this i thought it said buy corpses,...and thought...WTH, a Burke and Hare mod :biggrin:
User avatar
k a t e
 
Posts: 3378
Joined: Fri Jan 19, 2007 9:00 am

Post » Thu Jun 21, 2012 6:29 pm

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
User avatar
Chris Duncan
 
Posts: 3471
Joined: Sun Jun 24, 2007 2:31 am


Return to V - Skyrim