its a "Feature" xd, how i tried to implement it was when something enters its range it rotates to make sure its facing it then check if its on cool down so there will be cases where like multiple enemies getting detect would cause that "Feature" and glad you liked the idea :D