Jump to content

Headshot only condition


Recommended Posts

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),

image.thumb.png.b3e69a8c4162cdf6ce512dcb9f8fee7b.png.

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.

 

image.thumb.png.a25c2375854e27b5ad7655b7cc999fb2.png

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?

image.thumb.png.af83e9296d22636042b8918b649c2b36.png

Thank you!! :)

Link to comment
Share on other sites

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

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:

image.thumb.png.7bbe3ee175a3a3aa7dd8ddb5dedb198e.png
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

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

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

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?
image.thumb.png.db3eaa18a6475704c037c3dcf8883516.png

Link to comment
Share on other sites

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 by Rasikko
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...