Clamp Camera Based On Character Rotation

From what I can see you have the camera clamped when player steps on the rail.

You could check the character’s forward vector as the event triggers and set the yaw limit accordingly.