Frictional Games Forum (read-only)
Scripts For Deactivating Point Lights? - 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: Scripts For Deactivating Point Lights? (/thread-21391.html)



Scripts For Deactivating Point Lights? - FurtherGames - 05-04-2013

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]


RE: Scripts For Deactivating Point Lights? - PutraenusAlivius - 05-04-2013

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.


RE: Scripts For Deactivating Point Lights? - Romulator - 05-04-2013

(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.