Download

Scale Light function based on distance

Hello,
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:

http://entrod.sp-website.net/images/UDK/QFL/1.jpg

http://entrod.sp-website.net/images/UDK/QFL/2.jpg

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