Scale Light function based on distance

I’m trying to get a spotlightcomponent with a light function to behave like a flashlight beam, and while the light function works it does not scale based on distance.
IE. Killing floor flashlight:

I have tried using a trace, then dividing the distance and setting the Scale x,y,z, but this only works when the light is initially turned on, and does not update until you retoggle the flashlight.
Any suggestions would be greatly appreciated.

I’d try first off a dominantPointlight and fiddle with the settings … sorry can’t be of much help

doesn’t the spotlight have a distance fade built in? I know pointlights do