Is there a way to get nearest transform of creatures or something?

I want to know the nearest creature’s transform from player! How can I get that?

1 Like

You can use the distance function through an array of creatures and then use the creature that returns the smallest distance value

1 Like

Thank you I hope this will help me out

1 Like