Jump to content

[LE] how respawn specific NPC in (x) time


Recommended Posts

 

 

Event OnDeath(Actor akKiller)
    ; if you care only that this event runs if the killer is the player.
    if akKiller == Game.GetPlayer()
        RegisterForSingleUpdateGameTime(24.0)
    endif
EndEvent

Event OnUpdateGameTime()
    ; this will need to be on an alias.
    ; Don't put scripts directly on the actor, unless it's not a vanilla actor.
    (GetReference() as Actor).Resurrect()
EndEvent

Not tested.

Not compiled.

Just a general idea.

Fast Travel, Sleeping, Waiting, anything that advances time will effect this Event (it'll run when all of that is done.)

 

If you have a problem using Resurrect, you can also choose Reset(), but the player cannot be in the same cell, I think, otherwise odd things will happen, like respawning with nothing but their underwear, and things like faction information is not reset.

 

"the script extension does not exist" :sad: anyway thanks

 

 

All of those function calls exist in vanilla Skyrim. Can you provide the full and exact text of your script and the error log?

 

"the extends script does not exist,please pick one that does" Event OnDeath(Lvlwerewolf)

; if you care only that this event runs if the killer is the player.

if Lvlwerewolf == Game.GetPlayer()

RegisterForSingleUpdateGameTime(24.0)

endif

EndEvent,I put it in the npc script option but it does not recognize it as a valid script, I still could not add the rest because I do not know where the "alias" option is or whatever it was

I am sorry and I ask for patience since it is not so simple, it is clear that I need basic knowledge of scripts

Edited by Robert271990
Link to comment
Share on other sites

  • Recently Browsing   0 members

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