Announcement

Collapse
No announcement yet.

Help! My Line Tracing Isn't Working Right!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help! My Line Tracing Isn't Working Right!

    Let me preface this by saying that I have never done anything related to raycasting or line-tracing before. I tried watching tutorials, but every single one I found was about line-tracing a bullet for FPS's, and I was looking for line-tracing for melee weapons. And with not finding a single one (there's probably one out there but I ran out of patience for searching for one) I tried to do it myself, and it honestly kind of worked... but not really. It only traces the top point and bottom point of the attack animation, and it just does damage if I stand with the sword inside the enemy actor. Then I tried adding animation notifies for where I wanted it to start line-tracing, and where I wanted it to stop, and then I created a boolean within the player character blueprint that would be set inside the animation blueprint by the anim. notify. But then it wouldn't line trace at all. So now I'm back at where I was before, and I have no idea what to do. Hopefully you wonderful people can help me with this, because it's just flat out frustrating at this point.

    This is my Animation Blueprint Event Graph:
    Click image for larger version

Name:	Screenshot (19).png
Views:	1
Size:	806.6 KB
ID:	1225527

    This is my Character Event Graph:
    Click image for larger version

Name:	Screenshot (20).png
Views:	1
Size:	679.0 KB
ID:	1225528
Working...
X