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

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.