AngelWilly Posted June 17 Share Posted June 17 Hello guys, I am trying to create a legendary perk for a weapon that does the following: "Guarantees a critical hit against an enemy head" I am a Creation Kit beginner and so far I was only able to add flat value to the gun that gives a critical chance to every shot (Mod My Critical Hit Chance, with Function Add value), . but I do not know how to set a condition that applies only to headshots GetHitLocation does not allow me to select "head" and when I used Function "EPIsLastCombatHitLimbInCategory" = head, that didn't work either. What am I doing wrong? Is it even possible to set it according to my requirements? Or did I do something wrong in Magic Effect as well? Thank you!! :) Link to comment Share on other sites More sharing options...
SKKmods Posted June 17 Share Posted June 17 My starfield headshot mod uses actor AV HealthAnimHeadCondition but I have no idea how that would be used as a perk condition. Link to comment Share on other sites More sharing options...
AngelWilly Posted June 18 Author Share Posted June 18 10 hours ago, SKKmods said: My starfield headshot mod uses actor AV HealthAnimHeadCondition but I have no idea how that would be used as a perk condition. Could you show me how that works, please? For example: Do I understand it properly that this Function in the Target tab checks whether Actor has the health of his "head" at 100% (in this case Actor is Target so it's the receiver of the fired bullet?) and then it multiplies my attack damage by 50%? Link to comment Share on other sites More sharing options...
SKKmods Posted June 18 Share Posted June 18 No I cant show you how it works as I use that AV in script Quote I have no idea how that would be used as a perk condition. Link to comment Share on other sites More sharing options...
Evangela Posted June 18 Share Posted June 18 1 hour ago, AngelWilly said: GetHitLocation does not allow me to select "head" and when I used Function "EPIsLastCombatHitLimbInCategory" = head, that didn't work either. fired bullet?) and then it multiplies my attack damage by 50%? GetHitLocation returns an integer. Use 1(head1), 5(head2), or 16(Brain). This is assuming this was carried over from Fallout 4. Link to comment Share on other sites More sharing options...
AngelWilly Posted June 18 Author Share Posted June 18 2 hours ago, Rasikko said: GetHitLocation returns an integer. Use 1(head1), 5(head2), or 16(Brain). This is assuming this was carried over from Fallout 4. So you mean like this? Condition function: GetHitLocation and Value will remain 1.000 (which is according to you (head1) then the function procs and critical chance will be increased? What about The Conditions tabs? (Perk Owner / Weapon / Target) Which one of those is correct? Link to comment Share on other sites More sharing options...
Evangela Posted June 18 Share Posted June 18 (edited) Yes, that is correct. GetXXX condition functions often returns an integer either as a boolean(true / false) value or enumerator of sorts(in the case of GetHitLocation, this is from Body Part Data) and thus you must compare its return value with the one you're expecting. Edited June 18 by Rasikko Link to comment Share on other sites More sharing options...
senterpat Posted June 18 Share Posted June 18 You should use setvalue 100.0 instead of value + 100.0 I doubt it'll affect anything honestly but over 100% would be unnecessary Link to comment Share on other sites More sharing options...
Recommended Posts