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
[solved] Turning lights red then fade
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#2
RE: Turning lights red then fade

Do you mean Light or lamp entities?

If it's a light then you can do this:
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime)
Example:
FadeLightTo("SpotLight_1", 1, 0, 0, 1, 5, 0.4);

To turn them back, do the same but then another number. To turn them of, do this
SetLightVisible(string& asLightName, bool abVisible);
Example:
SetLightVisible("SpotLight_1", false);

I don't know what to do with the lamps. There's a red lamp, you could do something with the SetEntityActive script and place 2 of those on eachother. But for other lamps, I really don't know

03-22-2011, 11:29 PM
Find


Messages In This Thread
RE: Turning lights red then fade - by Viperdream - 03-22-2011, 11:29 PM
RE: Turning lights red then fade - by Danny Boy - 03-23-2011, 01:01 AM
RE: Turning lights red then fade - by Danny Boy - 03-23-2011, 05:15 PM
RE: Turning lights red then fade - by Viperdream - 03-23-2011, 06:45 PM
RE: Turning lights red then fade - by MrBigzy - 03-23-2011, 06:49 PM
RE: Turning lights red then fade - by Danny Boy - 03-23-2011, 07:08 PM



Users browsing this thread: 1 Guest(s)