Frictional Games Forum (read-only)
How can i deactivate light when i pick up a key. - 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: How can i deactivate light when i pick up a key. (/thread-11625.html)



How can i deactivate light when i pick up a key. - GillFrog - 12-02-2011

When i pick up a key, a light gets inactive.
How can i do that? I'm a noob Big Grin
[Sorry for my bad english, i don't have any ideas how to explain it. ^^']


RE: How can i deactivate light when i pick up a key. - Unearthlybrutal - 12-02-2011

SetLightVisible("your light name here", false);

Smile


RE: How can i deactivate light when i pick up a key. - GreyFox - 12-02-2011

A Light? Or Lamp (IE Candles, Etc)

SetLightVisible("Name", false);
or
SetLampLit("Name", false, false);

-Grey Fox




RE: How can i deactivate light when i pick up a key. - GillFrog - 12-03-2011

(12-02-2011, 09:01 PM)GreyFox Wrote: A Light? Or Lamp (IE Candles, Etc)

SetLightVisible("Name", false);
or
SetLampLit("Name", false, false);

-Grey Fox
Thanks for the reply.





RE: How can i deactivate light when i pick up a key. - CorinthianMerchant - 01-16-2012

(12-02-2011, 09:01 PM)GreyFox Wrote: A Light? Or Lamp (IE Candles, Etc)

SetLightVisible("Name", false);
or
SetLampLit("Name", false, false);

-Grey Fox


Why isn't the key mentioned in the script?