Frictional Games Forum (read-only)

Full Version: How can i deactivate light when i pick up a key.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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. ^^']
SetLightVisible("your light name here", false);

Smile
A Light? Or Lamp (IE Candles, Etc)

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

-Grey Fox

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


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