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
Unactive lights are active in game
Rapsis Offline
Member

Posts: 69
Threads: 6
Joined: Oct 2012
Reputation: 0
#1
Unactive lights are active in game

Hey guys, the lights I have set to "unactive" are still active in-game. I've deleted the cache file. Help?
08-11-2013, 12:08 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Unactive lights are active in game

You can't make Lights in active. You have to use either SetLightVisible or FadeLightTo. Both codes are down below.
Spoiler below!

PHP Code: (Select All)
void SetLightVisible(stringasLightNamebool abVisible); 

asLightName - Name of the Light.
abVisible - Determines if the Light will be visible or not.

PHP Code: (Select All)
void FadeLightTo(stringasLightNamefloat afRfloat afGfloat afBfloat afAfloat afRadiusfloat afTime); 

asLightName - Name of the Light.
afR - Red value.
afG - Green value.
afB - Blue value.
afA - Alpha value.
afRadius - Radius of the Light. -1 means keeping the Radius.
afTime - Time in seconds until the change is done.


"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 08-11-2013, 01:08 AM by PutraenusAlivius.)
08-11-2013, 01:07 AM
Find
Rapsis Offline
Member

Posts: 69
Threads: 6
Joined: Oct 2012
Reputation: 0
#3
RE: Unactive lights are active in game

That worked, thanks.
08-11-2013, 05:04 PM
Find




Users browsing this thread: 1 Guest(s)