Nodes for click to move

coud anyonbe please post the code to this or a tutorial,

Im tring to make it so i can click somewhere and my character will go there and but if i click on like theside of a wall he wont go there, something like that would be greate ive sat for ages looking on how to do it and all i can see is (Itween, navmesh, or waypoints or A* pathfinding) but ive tried all them and they dont work it would be greate if someone could give me a project or the code to this.

Thanks

I once saw a RTS project that had tanks that could be “clicked and sent” like your describing. Maybe you could learn from it:

http://forum.unity3d.com/threads/17634-C-amp-C-style-RTS-Community-Project-Generals

That worked tho the tank can only walk on the terrain:/