TheMalevolentTrout Posted July 24, 2017 Share Posted July 24, 2017 Hey y'all I'm trying to set up a perk that modifies the player's critical hit chance based on his distance to the target. As in, if the distance is >= 100, critical hit chance is increased by 25%. But I can't get the condition for the distance to work properly. I added a Perk Entry Point called "Mod My Critical Hit Chance", set it to "Add Value" and a value of 100 (for testing purposes) and under its Conditions, in the Target tab, I tried two different functions: GetDistance [TARGET] >= 100GetWithinDistance [TARGET], 100.0 != 1 And neither of those work. I tried shooting NPCs from lots of different distances and Crit never happens. If I take the conditions out I crit all the time, so the conditions must be set up the wrong way.Can anyone tell me how to do it properly? Thanks for your help! Link to comment Share on other sites More sharing options...
DukePatrick Posted July 24, 2017 Share Posted July 24, 2017 GetDistance [TARGET] >= 100GetWithinDistance [TARGET], 100.0 != 1 TARGET is not legitimate. You need to set it to a specific reference such as the player ref. I wish Beth had made this condition more "powerful" because in melee combat distance and heading angle is a HUGE modifier for all kinds of things related to "swinging" weapons. And it would have been great to have that for my combat mods in Skyrim and Oblivion. "Heading Angle" has the same problem. If they had just included the "actor I just now hit" as a "target" option that would have made this condition a god send for me. And all this only works IF there is a tab in your perk for the target actor the perk is to work on. Some "entry points" so and some do not. Anyway set the target to "player" under the "target of the perk" Tab. The Subject will be the actor the player is attacking under that tab. Link to comment Share on other sites More sharing options...
TheMalevolentTrout Posted July 24, 2017 Author Share Posted July 24, 2017 Aw yeah, it works. :pirate: Thank you so much! I thought [TARGET] refered to the target (of your attacks). I changed it to PlayerRef and now it works. This perk is for the Player only so it's all good.I wanted this to replace the knockdown ability of the Sniper Perk with giving the Player a small chance to crit the target IF a) the player uses a scoped weapon, b) target is very far away and c) only outside of VATS. Now I just need to figure out the right amount of units, but this page is very helpful: https://www.creationkit.com/index.php?title=Unit Link to comment Share on other sites More sharing options...
frykas Posted February 8, 2020 Share Posted February 8, 2020 Does anyone know if you can add a tab to entry point? I'm trying to mod gunslinger perk so that it checks if you are within 20 paces (17 yards or 1088 fallout units) away from target and increase your vats accuracy. Yet there is only tap for perk owner and even headshot chance has only perk owner and weapon tabs. Pretty frustrating. Thanks in advance! Link to comment Share on other sites More sharing options...
Recommended Posts