Detecting location of mouse click

I have a space ship that has a turret and at the moment i am using a mouse cursor to aim it. At the moment the accuracy of the turret is not ideal so i am trying to figure out a better way of doing this. On way i thought of is to send the bullets to the location of a mouse click. I know that the engine can detect when an object is clicked on but can it get the location that this happens at so i can send the bullets to the location to improve accuracy.

Hi!

I think this video tutorial will help you.

Shooting Projectiles At Mouse Location