LineTrace Detection

Hi, I’m trying to create a ledges detection system using multiple Line Trace placed at different heights on my character. I would know if there’s a way to calculate the nearest object hitted by the lines. Could someone help me please?

I got it, thank you so much for help!

youd have to script a little loop which takes each hit location and compares it to location of the player. then sets the closest one to a separate variable. so the basic idea is the multi line trace outputs a array so you get index zero and set that as the closest then you run though every other hit and see if the distance is shorter then currently set closest. then once the loop is done you will have the closest hit result to you. see the picture below.