Thank you for that. I already know arrays from c++, its the blueprints arrays I don’t know.
the bug that was not being able to use the “hit actor” on the longest measured distance. I fixed that with the blueprint i will share now, but this blueprint measures the closest distance which is good for destroying targets which is what i tested for.
713548203c704c5abb92474fc7900664.1-line-trace-function.png (3440×1400) (gamedev.net)
4d77b96ff0f94806ba48c601f359366f.2line-trace-function.png (3440×1440) (gamedev.net)
473bc9410479475f9bc42840eea975a2.3-line-trace.png (3440×1440) (gamedev.net)