Frictional Games Forum (read-only)

Full Version: Activate/deactivate lights
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

Can anyone tell me witch script command do i use to acticate/deactivate lights(Box,point,spot)?

Thanks
The function you're looking for:

SetLightVisible(string& asLightName, bool abVisible);

asLightName = name of the light
abVisible = whether or not its visible (true/false)

Example:


void function
{
SetLightVisible("spotlight_1", false);
}



Hope that helped
(02-25-2013, 11:39 PM)Adny Wrote: [ -> ]The function you're looking for:

SetLightVisible(string& asLightName, bool abVisible);

asLightName = name of the light
abVisible = whether or not its visible (true/false)

Example:


void function
{
SetLightVisible("spotlight_1", false);
}



Hope that helped

Thanks mate, i searched this one for hours without any outcome. Smile
for all scripts: http://wiki.frictionalgames.com/hpl2/amn..._functions

use ctrl+f or F3 to browse the whole page.