AI that attacks only from behind

Player needs to be a PlayerController of your player. WorldLocation should be the location of the AIPawn.

Then you get teh ScreenPosition and a bool that tells you wether or not the object is on screen.