Click andmove in different scenes

For my project, I have indoor and outdoor scenes. The first ones uses a plane (or any other mesh modelled in Blender) as floor, the second, uses terrains. So, I need to convert mouse clicks to floor coordinates that work for both scenes, how can I implement this?