Flipping enemy to face the player

so when a enemy gets hurt how do I make it face the player when its facing away?