Jump to content

Scripting help, OnDeath Respawn


MaddDreamer

Recommended Posts

I'm new to scripting and have been playing with the Respawn script from the creation kit site. What im trying to do is add an "If" that checks what the weapon was that killed the actor. I think I can figure it out for when the player kills it; if (game.getplayer(EquippedHasKeyword) == WeapTypeX)? Most importantly how would I go about making it work for other npcs that could end up killing it? Would it be easier to create an on hit event that tracks it prior to the on death script, respawning if not killed by the weapon type? I plan on attaching the script to enemies.

Edited by MaddDreamer
Link to comment
Share on other sites

  • Recently Browsing   0 members

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