Get light position in light function

I want to implement a kind of cutting of the light in the light function. This should be relative to the light. In the light function the absolute position is available but the light position is not. Is there any way to cut of the light relative to its position?

You need to pass the light position to the material via Blueprint.You can either pass it to a DynamicMaterialInstance created from the LightComponent or to a MaterialParameterCollection.