[SCRIPT] Candles to fade out? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [SCRIPT] Candles to fade out? (/thread-11241.html) |
Candles to fade out? - Lontasm - 11-08-2011 So uh yeah, in the story its a gust that blows thru the hallway, blowing out all the candles and torches, but how do I make the light fade out??? RE: Candles to fade out? - GreyFox - 11-08-2011 SetLightVisible(string& asLightName, bool abVisible); and then add A Candle Getting Blown out sound. -Grey Fox RE: Candles to fade out? - Khyrpa - 11-08-2011 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. |