How to attach cable to projectile class

Here’s how I achieved an effect that is similar to the one in Just Cause 2. What you need to do is to first perform a line trace and get the hit location. You can use a spline component or a simple static mesh scaled proportional to the distance to draw the rope. Cable components can be used by attaching one end to the arm bone and the other to the hit point but they move around like crazy, so it’s not aesthetic.

The second part is to fly to the hit point by rolling in the rope. I did it with a timeline node. You basically create a lerp vector node to determine the location of your player and get the alpha from the timeline. This would make your character fly to the hitpoint always in the same duration regardless of the distance. To fix this, divide meters per second with the distance and set the play rate of the animation to that value.