My old arch enemy...the mouse: Help with proper mouse input

Ever since i first learned c# to use xna, the mouse has always been a problem for me. Not using one, but putting it in the game. I always found mice were designed with 2d coordinates in mind and not 3d. After a long udk filled break i decided i was going to get back into unity 3d and try to make the dungeon crawler i always wanted(UDK did not go so well for me). I built some models and was ready but i had a problem.

How can i click a spot on my map and have the player move there? How can i have a mouse look? What is the proper way to implement the mouse? I have not decided all of the finer details of the dungeon crawler but basically it uses the mouse somewhere a long the lines and my mouse input is never 100 percent accurate.

Thanks

Raycasts are good for the point and click type thing. Although I don’t have any experience with this type of thing I think if I remember right is was something about raycasting from the center of the screen then have it travel in the direction of the mouse when the mouse clicked then use the position where the raycast hit as the place to move to. I’ll post an example code in a little while.