Anyone know what it is that keeps NPCs unconscious during co

Post » Sat Sep 18, 2010 1:41 pm

I'm trying to figure out how to get them to come back to life even during combat but I haven't been able to find it. It isn't in any of the settings nor in their scripts.

Anyone know if there's a way to fix it?
User avatar
Kit Marsden
 
Posts: 3467
Joined: Thu Jul 19, 2007 2:19 pm

Post » Sat Sep 18, 2010 4:34 pm

I'm trying to figure out how to get them to come back to life even during combat but I haven't been able to find it. It isn't in any of the settings nor in their scripts.

Anyone know if there's a way to fix it?


If you mean this happening to followers, I have not looked into it. I don't see followers staying unconscious while lying unattended by the player as needing fixing though, it sounds right to me.

As a total guess. If you wanted to mess with this, it sounds like maybe an .exe function has inflicted some fatigue on them? Try checking it in console and if its a low-ish or sub-zero number, seeing if 'modav fatigue ' to make the number higher makes them get up.
User avatar
~Sylvia~
 
Posts: 3474
Joined: Thu Dec 28, 2006 5:19 am

Post » Sat Sep 18, 2010 10:39 am

If I recall correctly there was a game setting that dictated how long the NPC stays unconscious, so if you want you can set that to 1sec or even 0 if possible. Alternatively, you can script around it and give/remove health point as needed :P In fact, I think that one of the overhauls tweaks that setting, so you could look into it. Some companion mods do as well.

Edit: Looked it up, you can use setUnconscious to turn the status on or off with a script :) There's also a function called getUnconscious.
User avatar
Alex Vincent
 
Posts: 3514
Joined: Thu Jun 28, 2007 9:31 pm

Post » Sat Sep 18, 2010 2:13 pm

Thanks for the replies, I decided to do a workaround and made it so that after they fall unconscious using the getknockedstate they would then resurrect through the use "resurrectactor1" which lets them keep all their items and get up.
User avatar
Scott Clemmons
 
Posts: 3333
Joined: Sun Sep 16, 2007 5:35 pm

Post » Sat Sep 18, 2010 8:31 pm

Thanks for the replies, I decided to do a workaround and made it so that after they fall unconscious using the getknockedstate they would then resurrect through the use "resurrectactor1" which lets them keep all their items and get up.

Be careful using resurrect1 or ResurrectActor1.. weird stuff like missing limbs, distorted bodies, and falling through the ground/floor can happen regularly with that command.
Tarrant's correct, it's a negative number for the fatigue stat that renders a combatant unconscious during a fight. "set VAR to player.GetAV Fatigue" to check it, "player.RestoreAV Fatigue xxx" to return xxx amount of fatigue, they wake up at 0 or higher.
User avatar
MARLON JOHNSON
 
Posts: 3377
Joined: Sun May 20, 2007 7:12 pm


Return to Fallout 3