not sure if this works on a lit candle in a holder, or whether it still actually works at all.
light_moving_ext lightObj = $<name of flame>;
if (!lightObj) //if light lit
{
return
}
else
{
lightObj.frob_ignite(); //turns flame particle effect on
$<name of flame>.On(); //turns light on
}
its lightobj.frob_extinguish(); to turn off a flame via a script
and $<name of flame>.Off(); to turn the light off.
I had it on a forge that you could turn on and off but sometimes the flame particale effect appears and the light stays off, or the light comes on and the flame doesn't appear.