How do I make my TPS character aim their gun at what the camera's looking at?


Currently as you can see they are pointing their gun elsewhere. I already have aim offset set up but can’t figure out the function to calculate the yaw and pitch values.