The guy standing on stairs is player and the guy standing at bottom is AI with red traces or lines.
The AI is not shooting at the player he is shooting projectiles straight to the ground.
The reason he can’t shoot you up there is because you’re getting the forward vector to shoot,. If hes not rotated up then he can’t shoot you. What you want to do instead is find the vector pointed at your player. To do that, get the enemy’s location,. And then the players location > find look at rotation > get forward vector