Character look up & down

Hello, I’m making an FPS game and I want to know how I can make the player’s body look up when your camera looks up and looks down when your camera looks down? Arsenal has this feature, I don’t know what it’s called though.

EgoMoose has an open source game with this feature: [Release] Platformer character controller
You can look at how it was done there.