transform.eulerAngles doesn't work on FPC

Hey !

I need to change the rotation of my first person controller to a certain angle… I’ve attached this script:

if (Input.GetKeyDown("m")) {
 transform.eulerAngles = Vector3(0, 50, 0); 

 }

But my FPC won’t rotate. The script however does work with some test cube I’ve placed in my scene…

Does that command somehow collide with my FPC controller script (I use the standard assets prefab)?

What might be the problem?

Look in the mouse look script, it overrides the rotation of the camera each frame. Thus you probably want to set the values of the mouse look script instead of the transform.