Frictional Games Forum (read-only)
Unactive lights are active in game - 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: Unactive lights are active in game (/thread-22389.html)



Unactive lights are active in game - Rapsis - 08-11-2013

Hey guys, the lights I have set to "unactive" are still active in-game. I've deleted the cache file. Help?


RE: Unactive lights are active in game - PutraenusAlivius - 08-11-2013

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

PHP Code:
void SetLightVisible(stringasLightNamebool abVisible); 

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

PHP Code:
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.




RE: Unactive lights are active in game - Rapsis - 08-11-2013

That worked, thanks.