Basically, the idea is that this script will take the given list of objects gotten from a raycast in all four directions and decide what is more important for the ai to target. In this case, the player will take precedence over a wall or block, and if it finds neither it will set it...