I am testing here and you can use like a normal weapon in a player, but you need change the templates.
I am having problems here with the target.
I make a tower gun, like the picture, and it direction is set by bone.
when I move the mouse the tower move and the target camera move with the ang_for_bone(map_cam2.pan,torres,"arms");
But when I put this to set a bullet direction, it not work.
I think I will start again the weapon code, the actual has a lot of bugs.

best regards,
Marcio