Not sure what type of game it is, but if its top down, you can do it through an angle.
angle(player.X,player.Y,face.X,face.Y)
This gives your looking angle at the face.
With a couple "is between angles" you should be able to determine which way the head should look.