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


Messages In This Thread
Unactive lights are active in game - by Rapsis - 08-11-2013, 12:08 AM
RE: Unactive lights are active in game - by PutraenusAlivius - 08-11-2013, 01:07 AM



Users browsing this thread: 1 Guest(s)