Anyone know what it is that keeps NPCs unconscious during co

Post » Wed Dec 07, 2011 2:03 am

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
Averielle Garcia
 
Posts: 3491
Joined: Fri Aug 24, 2007 3:41 pm

Post » Tue Dec 06, 2011 8: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
Britta Gronkowski
 
Posts: 3475
Joined: Mon Apr 09, 2007 3:14 pm

Post » Wed Dec 07, 2011 3:46 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
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am

Post » Wed Dec 07, 2011 12:51 am

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
Lizzie
 
Posts: 3476
Joined: Sun Nov 19, 2006 5:51 am

Post » Tue Dec 06, 2011 10:28 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
Ricky Meehan
 
Posts: 3364
Joined: Wed Jun 27, 2007 5:42 pm


Return to Fallout 3