A tough one for the master scripters

Post » Mon Aug 29, 2011 6:51 pm

I am absolutely stumped on how to do this efficiently. I essentially want to be able to kill someone with any weapon or spell, then once they are dead, have a script run everytime they are hit with a certain weapon.

So:

Player kills NPC with axe
Player hits dead body with this particular weapon - SCRIPT RUNS

My first thought was enchantments but this doesn't work as enchantments dont hit dead bodys. The only way I can think of doing this is giving the player a spell to cast on a dead body that then gives it an onhit script that detects when its hit by the player, then I can run a getequipped check to make sure the player is using the right weapon. but do Onhit blocks even work when the actor is dead?

Any body know a way of doing this? Im sure it's even been done before...

Thanks,

Mysterious Mr. Bear :D :D
User avatar
Danel
 
Posts: 3417
Joined: Tue Feb 27, 2007 8:35 pm

Post » Tue Aug 30, 2011 2:04 am

not to toot my own horn but...

done :P
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Mon Aug 29, 2011 3:00 pm

Mind telling us how? :)
User avatar
Arrogant SId
 
Posts: 3366
Joined: Sat May 19, 2007 11:39 am


Return to IV - Oblivion