UE4 - Turret shooting backwards, how to avoid and clamp it?

Hi, I’m using the spawn actor node, to shoot bombs from turrets, from their location to the player location using rotation,

Everything works perfect until the player gets behind them, and since turrets never rotate their head in a second to face the actor, they shoot backwards targeting to the player behind them… no idea how to clamp rotations so they can only shoot till a max amount from their forward position, so if the target exceeds this amount (is behind) they do not shoot:

How are turrets seeing the player?

Here’s a clamped turret setup, with Pawn Sensing and all:

1 Like