Negative. I tried setting SHADOW and CAST flags but still no shadow is cast.

Here are the screenshots taken in two lights i use. One uses light set by WED and other one is set using lightrange.

this one i set lightrange to 200 to an invisible object above the candle.



this one i set using WED. Light is same sa the flare above the candle on the fist screenshot and flags set is dynamic and lightrange of 150.


i set the following variable on main fuction to set the shadow.

Code:
shadow_offset = 5;
shadow_range = 15;
shadow_threshold = 60;
shadow_stencil = 2;
mat_shadow.alpha = 90;



Is there something wrong with the way i set the light on the candle? Or is there a better way to add light using lite-C and set it's property just like in WED?

I see that the light created by WED is quite different from setting it to a entity.