well first off you need to animate the player model's head, animaions making th head look right to all the way to the left and name these slides, in the scripting you need to script it so that when the player or enemy is in a certain range from each other that it will pick up the head animation so it's a mix of detection and animation, basicly the control of the animation so he would look that the entity.