Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Candles to fade out?
Lontasm Offline
Junior Member

Posts: 27
Threads: 7
Joined: Feb 2011
Reputation: 0
#1
Candles to fade out?

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???

Current Project: Depths of Shadows(Mapper)
11-08-2011, 12:14 PM
Find
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#2
RE: Candles to fade out?

SetLightVisible(string& asLightName, bool abVisible);

and then add A Candle Getting Blown out sound.

-Grey Fox

Current Project
Forgotten
11-08-2011, 12:45 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#3
RE: Candles to fade out?

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.

(This post was last modified: 11-08-2011, 12:46 PM by Khyrpa.)
11-08-2011, 12:45 PM
Find




Users browsing this thread: 1 Guest(s)