How can I fire bullets at mouse position

Hello. For my script I need to fire projectiles from the players ship to the mouses position on the screen. Currently the mouse pointer can be anywhere on the screen. The origin of the projectiles is the player directly in front of the camera (third person).

How could I accomplish this? I don’t want a scripting solution just some general guidelines…

You’ll probably need to transform your mouse position into something in world space, then have your player shoot projectiles at that position.

The following resource should give you a good starting point: