Is there any way to get the object of the NPC I killed?

Post » Sun Nov 18, 2012 11:15 am

I'm looking to get the id of the object/NPC that I killed. I know I can do this with an onevent script attached to the killed actor's object but I don't want to script every animal in the game.
Say I kill a deer. I'd like to be able to use that deer in a script attached to my Player's script.

Thanks!
User avatar
Oscar Vazquez
 
Posts: 3418
Joined: Sun Sep 30, 2007 12:08 pm

Post » Sun Nov 18, 2012 12:34 am

There's an OnDeath StoryManager Event (or OnKill ... I can't remember!) ... anyway, trap that using the Story Manager System, then get SM to start a Quest to do scripting or whatever ....

http://www.creationkit.com/Bethesda_Tutorial_Story_Manager and http://www.creationkit.com/Category:Story_Manager and http://www.creationkit.com/SM_Event_Node


You could, instead, do it with spells ... applying a OnDeath Script to any NPC in the area of the PC ... http://www.creationkit.com/Dynamically_Attaching_Scripts
User avatar
NO suckers In Here
 
Posts: 3449
Joined: Thu Jul 13, 2006 2:05 am


Return to V - Skyrim