Remove looting of non-player killed enemies

Post » Sun Sep 13, 2015 6:57 am

Can the looting of humanoids that my pc didn't kill be disabled? I have a lot of NPC mods and there are battles and corpses everywhere. The temptation to simply run around looting equipment is too enticing. Is that a way to make so the loot trigger just doesn't happen on corpses of enemies unless I killed them?

User avatar
Paula Ramos
 
Posts: 3384
Joined: Sun Jul 16, 2006 5:43 am

Post » Sun Sep 13, 2015 12:34 am

if (alias_deadNPCn.GetRef().GetKiller() != Game.GetPlayer())
deadNPC.BlockActivation()
endIf

The last n in deadNPCn means the nTh alias (make many) in a quest that you have to fire every x seconds to fill aliases about dead actors.

User avatar
Manny(BAKE)
 
Posts: 3407
Joined: Thu Oct 25, 2007 9:14 am

Post » Sun Sep 13, 2015 6:56 am

Thanks! I'll give that a try.

User avatar
Jordyn Youngman
 
Posts: 3396
Joined: Thu Mar 01, 2007 7:54 am


Return to V - Skyrim