Where to start to achieve this effect?

You need to set the flashlight direction on tick to ActorForwardVector of the flashlight, and the direction from ActorWorldLocation or whate