Make the crosshair snap to the mouse, in a while loop and then you can use mouse_dir3d/mouse_pos3d to fire the bullet in the '3D' direction of the mouse.

The manual has some small samples of this.