I have a turret defense kind of game where the enemy is a soldier. So i put turret behavior on it.
It worked as i expected, the soldier turns when it has the player within it's range.
But then, I also want to play certain animation every time the soldier turns it's angle toward the player so it can look more natural.
How do I detect this turret turning event and how do i play an animation during this event?