DEPRECATED - New function in MeleeTargeting.
672 {
673
675 int hitComponentIndex;
677 vector start, end, hitNormal, hitPosObstructed;
680
681 if (object)
682 {
683 MiscGameplayFunctions.GetHeadBonePos(player, start);
684 end = start + MiscGameplayFunctions.GetHeadingVector(player) *
vector.
Distance(player.GetPosition(),
object.GetPosition());
685
686 if ( end == start )
687 return true;
688
690 }
691
692 return false;
693 }
DayZPlayerImplement m_DZPlayer
Parent.
static proto bool RayCastBullet(vector begPos, vector endPos, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.