How to fix random delay in FOV change for zoom function?

Hello,

I am new to game making and the Unreal Engine, and I have encountered my first unfixable problem.

I am using the starter Unreal Engine First Person project level, and I wanted to add a “zoom” functionality like in most FPS games. To do this, I want it to reduce the FOV of the main camera when the right mouse button is held down, and I want it to do it smoothly using timeline.

Here is the blueprint I have created that is semi-working:

The Zoom InputAction is set to right mouse button. When I use this the following happens:

  1. I press right mouse button down
  2. It starts zooming in, the 0.3 second timeline plays while slowly changing the FOV
  3. It stops changing FOV at 45 (correct)
  4. I then wait a few seconds while shooting at some boxes
  5. I let go of the right mouse button
  6. It is still zoomed in (wrong, should be zooming out instantly)
  7. The amount of delay is similar to the length of time I held down the button while zooming in

I do not know why there is a delay at step 6, it should quickly start the Timeline, right?

If you know how to remove the delay, please let me know.

Thank you

I guess you forget to click that key which in the timeline,called Use Last Keyframe.The timeline is still running while your FOV has already been 45!So when you pressure it,it wont be at 0.3 second.If you keep clicking zoom for 1 sec,and you need to spend 1 sec waiting it turning into 90
Hope I can help you.

Thank you so much for helping me, I love you!!!

Many of the engine features are difficult to understand.As for me a Chinese that will be more difficult to understand,I have ever been in trouble like you,I even spent many days to solve the problem.Finally,I found I forgot to check the button.I thought there must be something wrong with my book,It was because I am too careless…