# Line trace attack

**URL:** <https://forums.unrealengine.com/t/line-trace-attack/72004>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 20, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/line-trace-attack/72004 "2016-08-20T20:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![train0fpain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@train0fpain](https://forums.unrealengine.com/u/train0fpain)\
**Post date:** [August 20, 2016, 8:15pm UTC](https://forums.unrealengine.com/t/line-trace-attack/72004/1 "2016-08-20T20:15:13Z")

</div>

I already posted at similar question on answerhub, but i am not sure if this was the right place or if it is better to ask it in the forums^^

> **[Line trace not responding](https://forums.unrealengine.com/questions/473059/line-trace-not-responding.html)**
>
> I’am trying to get when two swords collide with each other by firing line trace from the attacking sword. When I hit the hitboxes from the player it works fine. But the weapon doesn’t generate a hit event when I try to block, if the defending player...

But does someone here know if there is a problem with blendspace driven animations and line tracing in multiplayer?

---

<div class="post-metadata">

**Author:** ![Kris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kris/32/758129_2.png) [@Kris](https://forums.unrealengine.com/u/Kris)\
**Post date:** [August 21, 2016, 4:24am UTC](https://forums.unrealengine.com/t/line-trace-attack/72004/2 "2016-08-21T04:24:39Z")

</div>

Depends on how you do the traces.  
If you’re tracing up the sword per-frame, its most likely moving past the other sword before a line trace can successfully detect it.  
If you’re tracing from several places on the sword from last frame to the current frame, then it should work.

In either case, my suggestion would be to look into using [Rama’s Melee Weapon plugin](https://www.unrealengine.com/marketplace/rama-s-melee-weapon-plugin) instead, as you’ll probably get better results with less effort 🙂

---

<div class="post-metadata">

**Author:** ![train0fpain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@train0fpain](https://forums.unrealengine.com/u/train0fpain)\
**Post date:** [August 21, 2016, 8:53am UTC](https://forums.unrealengine.com/t/line-trace-attack/72004/3 "2016-08-21T08:53:26Z")

</div>

Thanks for your response 🙂  
I’d prefer not to buy anything from the marketplace yet^^  
And yes I’m tracing from several places on the sword from last frame to the current frame, but I think the hitbox attached to the sword is the problem.  
It seems like the position of the blocking sword isn’t updated. If I hit the location where the sword is in idle and/or the arm that is holding the sword, I get a collision with the enemy sword even though it is over the enemys head according to what I see. So the visual and the actual positions are not in sync.
