Rotating camera

Hey, I’m new to scripting in Unity, and I was trying to make the camera on the first person controller rotate back to 0, 0, 0 when the player pressed a key.

Is this possible?

Yes that is possible , use this script and attache it to your camera:

     Function Update()
        
{
        if(Input.GetButton("YourButton")
    
          {
            transform.eulerAngles = Vector3(0,0,0); // This will set the eulerAngles or the rotation to 0,0,0 
          }
}

You have to write camera code into LateUpdate function !

Refering to that reference !
http://unity3d.com/support/documentation/ScriptReference/MonoBehaviour.LateUpdate.html

I quote: “LateUpdate is called after all Update functions have been called. This is useful to order script execution. For example a follow camera should always be implemented in LateUpdate because it tracks objects that might have moved inside Update.”

Cheers

T