Rotate character 180 degrees

Im using the FPSWalker script, and i need it modified so that when the character is walking it displays the walking animation.

And when he walks left or right, it rotates the model 180 degrees. Ive tried various methods to do so but i havent manages to succeed.

Any suggestions on how i can do this?

been 13 hours. think it deserves a bump.

The first part is very straight forwards, the forum and documentation are littered with script examples, but you could add something like this at the bottom of FixedUpdate :

	if (grounded  Mathf.Abs(moveDirection.x) > 0.1 || Mathf.Abs(moveDirection.z) > 0.1){
		animation.CrossFade("walk");
	} else {
		animation.CrossFade("idle");
	}

The second part I don’t really get, you want the character to face backwards when they walk left or right?

I want the character to “turn around” when he changes direction. so he isnt walking backwards

Can you post the part of the code where the rotation is supposed to be happening?