Lock player Camera Rotation

Hey Unreal Community,

I have a Very simple blueprint thats controls the direction the player is looking at. It looks like this:

THe player is only in control over what direction he is looking at.
I however wanna prevent the player from looking around for the first 20 seconds. To lock the
I guess I am asking what is the best way to do this?

I hope you guys can help me out with this

You can use a gate before the controller Yaw and Pitch, you can close it, and 20 sec later (use a timer) you can open it again.

I would start by the node “On Begin Play” with a timer of 20 secs.
After these 20 secs, a bool gets set on True.
Additionally, just add a if before between Axis event and and the add Input

PS: Maybe you should add a sequencer or something after Event Begin Play, otherwise everything will be delayed 20 secs, and of course, CanLookAround has to be false at the beginning!

1 Like