How can I get the nearest actor and store it's array index?

You might want to post your own question.