How to create a stationary weapon FPS controller ?

Hi, i want to create a game where the player can’t move and shoots from a stationary MG.
Of course i still want him to be able to aim within a certain angle.
The MG is mounted and i want to rotate it instead of the camera.
I am assuming i change the pivot point to where it sits on the wall but i have no idea how to approach everything else like the fps controller and how to apply the rotation in the right way.

I am thankful for any advice !

any luck ? trying something similar

Hi,

When the player is engaged in the MG you can set the player transform as a child of the MG, stop moving the character from the inputs (mouse + keyboard ie) then move the MG through mouse input.
When stopping using the MG break the child-parent relation from player-MG.