Jump to content

Can't set an npc to non essential


Saxxon91

Recommended Posts

So basically for the companion mod i'm working on i've been trying to add an option to make him either essential or non- essential through dialogue but I cant get it to work.

 

At the moment I have it so he is non essential at first and the first time you speak to him he is set essential by a result script in the greeting.

This:

setessential DHCDesmondHarper 1

set DHCDesmondREF.Essential to 1

(this is so its not possible for him to die until you finish his quest)

That part seems to work fine but then when you tell him to not be essential nothing changes and he still won't die

the result script for that is:

setessential DHCDesmondHarper 0

set DHCDesmondREF.Essential to 0

 

does anyone have any idea how I can get this to work? It's getting really anoying...

Link to comment
Share on other sites

If you're not playing in hardcore mode, any NPC made into a "teammate" using SetPlayerTeammate is considered essential until you turn of their teammate status. The vanilla companions are never set to essential, as they just let the hardcore status determine if they should be allowed to die or not.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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