Frictional Games Forum (read-only)

Full Version: Unactive lights are active in game
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, the lights I have set to "unactive" are still active in-game. I've deleted the cache file. Help?
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.

That worked, thanks.