Ow. So it's set to dynamic when lightrange is > 0. That's strange. I alredy set the light range using thses. But doesn't cast any shadows unlike the light i set using WED.
Code:
my.lightrange = 150 + random(20);