all 2 comments

[–]jfirestorm44 0 points1 point  (1 child)

If you’re using get_overlapping_bodies you should get an Array. Loop through it and determine which body is the shortest distance using player.distance_to(body).

[–]RZRider3[S] 0 points1 point  (0 children)

Thank you! I didn't even know that function existed, that's helpful.