![]() Essentially, I need the NPC to re-evaluate its auto-leveled stats to correct its health. When I set CompHealthTweak to 0, disabling this set of conditionals, I would like the NPC to revert back his original auto-leveled HP. If CompHealthTweak if (player.getlevel 9 & player.getlevel 15 & player.getlevel 21 & player.getlevel 27 & player.getlevel = 35) * (GetBaseActorValue Health != 342) SetAV Health 342 endif endif I have this code snippet that forces a specific NPCs HP to be XXX for a given range of player levels. ![]() Using a combination of and seemed natural, but I read on the GetHitLocation page that Separately, I'm looking for how to determine what body parts of an NPC / creature are hit by a given bullet, if they're crippled or not, and how to check if the PC's different body parts have been hit/crippled. Depending on how erratically the PC is moving, he could do damage to one NPC, then move the crosshair when the script fires so the wrong name would be returned. I also saw the FOSE function GetCrosshairRef but I'm not sure that would get the name of the NPC actually taking damage / dying. The GECK also has but apparently that only works in a OnHit block, which itself can only be attached to a script running on a weapon? I'm confused. Looking at the functions available, it seems like might work, but the GECK page doesn't say what kind of block to use it in, and also it only works if autoaim could work. romeck gave me the idea with his message mod, and it looks like he ran into the same issue (currently enemies are either "Creature" or "NPC") ![]() I'm trying to find the name of any NPC / creature that the PC is currently doing damage to, to add some feedback messages similar to those in Fallout 1/2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |