Raycast range - starts from camera but is limited to a range

Hey guys,

I’ve got a problem here. The raycast function works based on casting a ray from a component and the casting range starts from the component casting the ray. Image 1. The problem is that I want it to cast from the camera component but its movement to be limited by another component or its range to be not based on camera position, despite being cast from it. Image 2. How do I do it?

Thanks.

P.S.: I am following the “using raycast” tutorial from ue4 document.

Nobody? =/