Frictional Games Forum (read-only)
Disabling a spotlight - 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: Disabling a spotlight (/thread-10541.html)



Disabling a spotlight - lordmestari - 10-01-2011

I have a red spotlight in a room. I want it to be active when I enter a script area. I unchecked the "active" box in the level editor, although in game it is still visible. How do you disable a spotlight?
And yes, I have deleted the cache files, if it has anything to do with this problem.


RE: Disabling a spotlight - HumiliatioN - 10-01-2011

Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:
SetLightVisible("SpotLight_3", true)




RE: Disabling a spotlight - MrBigzy - 10-01-2011

For some reason, deactivating lights through the level editor won't work, at least that's what I've found.



RE: Disabling a spotlight - lordmestari - 10-02-2011

(10-01-2011, 12:19 PM)HumiliatioN Wrote: Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:
SetLightVisible("SpotLight_3", true)
That did the trick, thank you a lot!


RE: Disabling a spotlight - UnseenLegend ( NL ) - 10-02-2011

(10-02-2011, 01:35 AM)lordmestari Wrote:
(10-01-2011, 12:19 PM)HumiliatioN Wrote: Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:
SetLightVisible("SpotLight_3", true)
That did the trick, thank you a lot!
did work on box light and others to




RE: Disabling a spotlight - HumiliatioN - 10-02-2011

(10-02-2011, 01:32 PM)UnseenLegend ( NL ) Wrote:
(10-02-2011, 01:35 AM)lordmestari Wrote:
(10-01-2011, 12:19 PM)HumiliatioN Wrote: Simple. Example this: SetLightVisible("SpotLight_3", false); "OnStart" section this and when you enter the area:
SetLightVisible("SpotLight_3", true)
That did the trick, thank you a lot!
did work on box light and others to

Never tried, I guess not.