mouse movement

I want to use First Person Controller but I think I need a little change in the scripts. The player will turn ever which way the mouse is turning. Can I do that when LMB is held down? cause I like to use cursor to interact with objects during gameplay and GUI such as inventory.

Can I ask where to make that change in their scripts in order to have it work that way?

Thanks,
XC

well, you could change up the Mouselook script . before the script starts:

Function Update();
  if (Input.GetKeyDown("MOUSE KEY HERE"));

// MOUSE LOOK SCRIPT DOWN HERE!!!!

Thank you.

Where can I go to get a list of available keys?

Thanks,
XC

I found the keycodes and the update became this

Function Update();
if (Input.GetKeyDown(“MOUSE0”));

I did make that addition to the script and received and error “A namespace can only contain types and namespace declarations”

What am I doing wrong?

Thanks,
XC

Also, you’ve got a semicolon after the declaration of the Update function. The function body should be inside curly braces.