I'm working on a top-down shooter style game and I want to check if the enemies can see the player. I'm using the line-of.sight behaviour, but i want this active only when the player is between some range of the enemy's orientation angle.
I've been trying to do this comparing the enemy's angle and the angle between the enemy and the player, but I've found no solution. Could anybody help with this?
Thanks!