100 unit long line trace from object to character, how to?

255607-linetrace.png

here is my beautiful drawing about the situation. so im casting a line trace from object to character, at the moment it goes straight to character with "end->getactorlocation(self), i want the trace be only 100 units long. should i make the end of the trace somehow to the right spot or manipulate the “break hit result” to tweak the distance?

thanks.

Could you get the distance off the TraceHit and Branch it to do something only if Dist<=100?

i need the location of the point that the 100 unit reaches, so that doesnt work on this case =/

Like this:

If you want to trace towards the player, just use the appropriate direction vector rather than the forward vector of the objects that does the tracing.

i found a solution, i tried a new node “get unit direction vector” as Everynone suggested. Thanks.