Camera lockon, z targetting

Hello, i’m trying to have a dynamic camera that locks on to enemy and clamp itself to target and character within the frustum.

i have basic ideas when i worked in unity but not sure how to translate it to unreal or c++.

basically it has to modes, lockon and orbit.
By default it is orbitting the player, like the main third person camera with basic collision.
During lockon, the camera will lock to a point in space Vector3, acquired from the lerping between enemy and character, normalized length to the orbit radius.
Like an arrow pointing to the enemy within a radius.
Going within the radius, the lockon camera will become almost like fight camera, orbiting both character about, 0.5 of lerp between both.

Can someone point me what i should learn or if there’s ready made solution or tutorial? thank you!