Frictional Games Forum (read-only)

Full Version: Scripts For Deactivating Point Lights?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a script where you walk over to a candle and it blows the candle out. The candles in the room are not bright enough, is there a way I can turn off point lights as well as the candle as the same time?[/b]
You CANNOT turn off pointlights nor any lights. How you do this is to set he light's colour to black and connect it to the light.
In the Light's properties menu in the LevelEditor, there should be a word saying "ConnectedLight". Input the name of the light in there.
(05-04-2013, 01:55 PM)JustAnotherPlayer Wrote: [ -> ]You CANNOT turn off pointlights nor any lights. How you do this is to set he light's colour to black and connect it to the light.

I beg to differ...

PHP Code:
SetLightVisible("<pointlight>"false); 

Put that in your CollideCallback which has your ScriptArea in it.