Send object to specific character depending on view

Hi all, I’m trying to build a system where a player will pass the ball to another player depending on whether they are in their line of sight. Currently I’m using the player with the ball’s view and comparing it to the current location of all the players on the team but I’m not sure how I use what I’m getting to pass the ball to them.

How would I then go about selecting the desired player from the array?

Thanks