Jump to content

how to rmove all inventory from npc when he dies but not his clothes


tonycubed2

Recommended Posts

Greetings,

 

Can't find a simple way to on death of npc remove all weapons . Preferably all except clothing, looks funny to have a dead naked body just show up upon death. The reason for this is that I have custom Vampire Hunters with magic weapons and I do not want the player to get them.

 

Thanks

 

Tonycubed2

 

ps: it ried the beolow, but unquipallwill not compile!

 

Scriptname RemoveInventory extends ObjectReference  

import Actor

Event OnDeath(Actor akKiller)
Self.UnequipAll()
SELF.addItem (dough, 1)
SELF.addItem (dough2, 1)
Self.RemoveItem (magicweapon)
Self.RemoveItem (magicWeapon2)
EndEvent



LeveledItem Property hood  Auto  

LeveledItem Property boots  Auto  

LeveledItem Property robes  Auto  

LeveledItem Property Gloves  Auto  

LeveledItem Property dough  Auto  

LeveledItem Property dough2  Auto  

WEAPON Property magicweapon  Auto  

WEAPON Property magicWeapon2  Auto  

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...