Lock camera to characters head

Hi,

I am trying to lock the camera I have positioned over my characters head to the character so that when the character goes prone the camera moves with the character. If you haven’t guessed its for a FPS game so its important that the camera moves with the character.

At present the camera is joined to a SpringArm which is then joined to the mesh (I thought joining it to the mesh would fix the problem but it seems that the camera is locked from moving on the Z axis).

Any ideas of how I can stop the below from happening and have the camera move with the rest of the head.

This may be a seperate issue so tell me if it is but how can I also get the body to follow where I am pointing the camera. At the moment the camera moves around the body but does not move the body itself which is why you can see the hands in the below print screen. Alternatively I would like the hands/body to move where-ever the camera looks. I.e. point the gun at the floor when I look there with the mouse.

Thanks for any help you can provide.

EDIT - Was able to attach the camera to the mesh using the head socket (don’t know why I didn’t think of that before), the camera moves around alot which is to be expected. Any insight on moving the arms when the camera moves would be greatly appreciated.

Just thought i would answer my own questions since i found the answer.

  1. Attached camera to head socket to lock it to head.
  2. Followed tutorial on AnimOffset to get rhe hands to follothe camera movement.