Return camera position to its first place

So generally I want to create a DayZ style game. It has a pretty cool camera trick in which, when ALT is not pressed, the character is moved along the camera rotation (“Use Controller Rotation Yaw” = off) and when it is pressed, I am allowed to look around me, without the character moving (“Use Controller Rotation Yaw” = on). When ALT is released, I want the camera to go back to where the character is looking just before I pressed alt (in my case, the CHARACTER rotates to where the camera was looking just before I released ALT). Any ideas would be helpful :slight_smile:
Sorry if I am not too understantable.

Here is how I made the simple ALT system

I also hope this video helps: 24 Hour Stream Highlights! DayZ Standalone Gameplay. - YouTube
(Check 0:11 - 0:16 how the camera returned to its original place when he released the ALT button)

How about saving the direction the camera was at the moment you press alt and use that variable to switch it back to its original orientation when you release it.

To do this you can use the function SetWorldRotation.

110651-setworldrotation.png

I have a hard time finding the command to set the rotation of the camera back to the saved rotator variable

I updated the answer with the function.