How do I make a mouse aiming turret with wire?

I know how to wire a turret so that it fires when you press m1, but how do I aim it with my mouse?

Im not too sure if its posible to connect it directly to the mouse,but you can use the laser pointer to mark enemies.Im not too sure tho since i havent played the game for some time now =(

I know how but I have no idea how to tell you lol its been ages since ive played as my main computer is dead. Im getting it back on friday tho woooo

Use the vector output (or XYZ coordinate outputs) on an adv. pod controller and wire it to vector thrusters or whatever device you use to move the weapon.

edit: Remember to link the pod controller to the chair or vehicle you use.