08-11-2013, 12:08 AM
08-11-2013, 01:07 AM
You can't make Lights in active. You have to use either SetLightVisible or FadeLightTo. Both codes are down below.
asLightName - Name of the Light.
abVisible - Determines if the Light will be visible or not.
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.
Spoiler below!
PHP Code:
void SetLightVisible(string& asLightName, bool abVisible);
asLightName - Name of the Light.
abVisible - Determines if the Light will be visible or not.
PHP Code:
void FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float 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.
08-11-2013, 05:04 PM
That worked, thanks.