11-08-2011, 12:14 PM
11-08-2011, 12:45 PM
SetLightVisible(string& asLightName, bool abVisible);
and then add A Candle Getting Blown out sound.
-Grey Fox
and then add A Candle Getting Blown out sound.
-Grey Fox
11-08-2011, 12:45 PM
This should do it.
SetLampLit(string& asName, bool abLit, bool abEffects);
Make sure you time it well so it looks like the wind blows them out.
If you have other lights supporting the lamps but not connected, you can use
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);
to fade those out. setlamplit false fades the light of the lamp entites in about 0.5f so use that.
edit. I don't really recommend using SetLightVisible because it fades the light out very fast and looks weird.
SetLampLit(string& asName, bool abLit, bool abEffects);
Make sure you time it well so it looks like the wind blows them out.
If you have other lights supporting the lamps but not connected, you can use
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);
to fade those out. setlamplit false fades the light of the lamp entites in about 0.5f so use that.
edit. I don't really recommend using SetLightVisible because it fades the light out very fast and looks weird.