Jump to content
inlesco

Detecting a headshot?

Recommended Posts

How does one detect two types of headshots - a deadly one and a survived one?

 

I suppose that is possible if you add a 0.5s timer that checks whether the unit hit is still alive or not. Correct?

 

Searched the forums, Google'd, checked the EH documentation (https://community.bistudio.com/wiki/Arma_3:_Event_Handlers) to no avail.

Share this post


Link to post
Share on other sites

the HitPart EH is what you need. The parameter number six has the selection (body part) where the unit was hit.

 

From the wiki:

  • selection: Array - Array ofStrings with named selection of the object that were hit.

Share this post


Link to post
Share on other sites

You can use this in EH:

_headDamage = player getHitPointDamage "HitHead";

And check treshold when hit is fatal or not

Share this post


Link to post
Share on other sites

"HandleDamage" EH returns a selection too. in case you need different MP behaviour since "HitPart" is fired only local to shooter or hit unit. can't remember which way around it was.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×