How to change FOV smoothly?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 99week

When the player presses “Shift”, it starts running faster but I also want to get the current FOV then smoothly shift (under 0.5sec) from the current FOV to the new one if the player is pressing the “Shift” button (FOV when sprinting). Bascily a smooth FOV change script.

Have you looked into using a Tween to change the value? It even says in the documentation for a Tween:

interpolating a dynamically-chosen camera zoom value is best done with a Tween node

Ertain | 2021-08-19 17:33