Nymra Posted September 13, 2021 Posted September 13, 2021 Hey, I have the PC set to essential via ESP (at least from what I understand of the mod, sigh) and now I want to remove that flag and/or kill the Player even when he is essential. What I tried: Playerref.SetEssential(False) this does not compile (SetEssential is not a Function error). It is described in the CK wiki, but I cannot get it to compile I also tried this: PlayerRef.KillEssential(PlayerRef) and PlayerRef.KillEssential() but both just lead to an endless "aaah I m dead", player goes to bleedout state and then immediatly stands back up again So my question is: how the hell can I remove the essential flag from the Player character via script OR kill the Player even when he is set essential?! thx alot
Psalam Posted September 13, 2021 Posted September 13, 2021 I've never done it in a script but the console commands uses a different syntax (in detail here): Spoiler setessential <base ID> <0 or 1> Set a character as mortal (0) or immortal (1). This command can be used to make any NPC unkillable. When a character set as essential takes nearly fatal damage, they collapse onto their hands and knees (Also known as Bleedout) and stumble around for a period of time, instead of dying. Note that the base ID and not the ref ID must be used. The ref ID is what appears when clicking on an object with the console open. To find an NPC's base ID, however, you can either a) browse to their respective page (see: People and/or NPCs) or b) use the help function in-game to search for them by name, recording whatever value matches their name under the "NPC_" category of result. Once you have the base ID, enter the command using either 1 to set him/her immortal or 0 to set him/her mortal. For example, setessential a2c8e 1 would set Lydia as immortal. Be careful when making an Essential NPC mortal, if they die you will likely be unable to access the associated quest or story. However, a simple save reload will fix if you haven't save over all the files where the character is still alive(and either non-essential or essential) Related functions: To check whether an NPC is essential to begin with, select him/her in the console (so that the ref ID appears), and enter IsEssential - if the console returns "1.00", the NPC is essential. It is also possible to set the player them self as essential with the base ID of 00000007, However upon entering the 'bleedout' stage, the player will sometimes not get back up (usually upon the first time in a new area or after having recently set yourself as essential), however, simply entering your inventory and drinking a health potion will fix this immediately (any health potion used during bleedout will return you to full health). Usually, your character will drop down to their hands and knees, and then immediately get back up with full health. I know that scripting and console commands don't always use the same commands/syntax but this is the only thing I know. I hope it helps.
blank_v Posted September 13, 2021 Posted September 13, 2021 PlayerRef.GetActorBase().SetEssential( x ) ? 1 hour ago, Nymra said: this does not compile (SetEssential is not a Function error). It is described in the CK wiki, but I cannot get it to compile SetEssential Extends ActorBase Script Actor extends ObjectReference ( don't ask me why... its Bethesda ) ActorBase Form Skyrim use to create Actor Forms I didn't tested SetEssential Function but it should compile now... after You change Actor to ActorBase //Edit: Click to make it bigger
Nymra Posted September 13, 2021 Author Posted September 13, 2021 Just now, -̒̈́̕?̖̪̼?̒̈́̕??̒̈́̕?- said: PlayerRef.GetActorBase().SetEssential( x ) ? SetEssential Extends ActorBase Script Actor extends ObjectReference ( don't ask me why... its Bethesda ) ActorBase Form Skyrim use to create Actor Forms I didn't tested SetEssential Function but it should compile now... after You change Actor to ActorBase thx alot, will try this out!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.