How to calculate next transform location based off distance?

Do you mind sharing your Trace Manager script that’s exposed to BP? Trying to implement similar, but having a tough time getting it working.