There are several ways that will let you execute that
1 as the person above me said use the line of sight behaviour
2 use the overlapping offset event
3 (the most simplest one) have a gigantic invisible circle around the player and have the game detect animals in the circle and move them out