Need help with (standard) "First Person Controller"

Hi,

I’m working on a little project and I need a little modification on the “First Person Controller”. I want the camera movement only to react when I hold the (for example) right mouse button down, while the button is not held down I want to show a mouse pointer to interact with objects and stuff. Is there an easy way to do this?

Thanks a lot!

Maybe try using the mouselook and modify it to work with “Fire1” down???

Hi again,

I think I solved it by myself. I edited the MouseLook.cs and added the following:

	void Update ()
	{
		[B][COLOR="#9932cc"]if(Input.GetMouseButton(1))
		{[/COLOR][/B]
			if (axes == RotationAxes.MouseXAndY)
			{
[...]
			}
		[B][COLOR="#9932cc"]}[/COLOR][/B]
	}

Is this an accaptable solution or is ther a better way?

Thank All_American!

Good to know that this ist a possible solution :smile:

Thanks again.

Seems liek it should work fine to me-

And it works fine :smile:

Thanks