STEAM GROUP
Skyrim Creation Kit (Public) CKPublic
STEAM GROUP
Skyrim Creation Kit (Public) CKPublic
90
IN-GAME
1,044
ONLINE
Founded
February 7, 2012
Setting the player to essential
Hi. I'm making a mod that involves setting the player to essential when entering combat and setting the player to non-essential when leaving combat (after testing with console commands, it seems to glitch after going into bleedout once). Is there any way to do this without any complicated scripting? I doubt it's possible without scripts, but if it is, that would be preferrable.
< >
Showing 1-4 of 4 comments
Altbert Dec 18, 2016 @ 12:11pm 
I don't think the player can be set to essential, but I'm not 100% sure. In console you may have used the command "player.setessential 1", but that's wrong because player is a reference ID and setessential needs a base ID. In Papyrus you would use "Game.GetPlayer().GetActorBase().SetEssential(True)", but no idea if this would work (never tried it).

My first idea would be to use the event OnCombatStateChange in the Actor script and attach it to the NPC the player is in/out of combat with: 0 = not in combat, 1 = in combat, 2 = search. This event can't be attached to the player, only to the actor the player is in/out of combat with. So, you would have to attach that script to every possible enemy, or find another way (maybe using a quest?). Either way, you probably can't set the player essential, but have to use "Debug.SetGodeMode(True/False)".

Without scripts probably only possible with the "tgm" command (toggle god mode).
Staples McGee Dec 20, 2016 @ 12:45pm 
Originally posted by Altbert:
I don't think the player can be set to essential, but I'm not 100% sure. In console you may have used the command "player.setessential 1", but that's wrong because player is a reference ID and setessential needs a base ID. In Papyrus you would use "Game.GetPlayer().GetActorBase().SetEssential(True)", but no idea if this would work (never tried it).

My first idea would be to use the event OnCombatStateChange in the Actor script and attach it to the NPC the player is in/out of combat with: 0 = not in combat, 1 = in combat, 2 = search. This event can't be attached to the player, only to the actor the player is in/out of combat with. So, you would have to attach that script to every possible enemy, or find another way (maybe using a quest?). Either way, you probably can't set the player essential, but have to use "Debug.SetGodeMode(True/False)".

Without scripts probably only possible with the "tgm" command (toggle god mode).


I did succeed in getting the player to be essential through scripts, but the player just reverts to a standing position after the intro animation plays; the loop doesn't seem to be working. I abandoned this awhile ago but when I left it I was looking into getting the player to just play the intro and loop anims instead.
YAELL Jan 4, 2017 @ 9:14am 
The player is being able to be set as essential. Of course this is only achievable by putting in the right properties and activate them at a desired time, thus you have to script it. The command ( aka script ) TGM ( = Toggle God Mode ) is also a script that sets your character to essential.

making a new script that activates upon entering combat and using the player property as the parent and other properties you are able to create a script that toggles "infinite health" which is just a high number and not necessarily infinite.

The player ID is always something like: 0000000014 so in the console commands you can use that, but it is easier to use TGM anyway.

I really don't see the point in doing this, but if you want it you should check up the Papyrus properties at www.creationkit.com
Last edited by YAELL; Jan 4, 2017 @ 9:14am
Horrible Andy Dec 15, 2018 @ 9:51am 
Originally posted by Real Himself:
Hi. I'm making a mod that involves setting the player to essential when entering combat and setting the player to non-essential when leaving combat (after testing with console commands, it seems to glitch after going into bleedout once). Is there any way to do this without any complicated scripting? I doubt it's possible without scripts, but if it is, that would be preferrable.

Mind telling me how you set the Player to Essential?
< >
Showing 1-4 of 4 comments
Per page: 1530 50