Turn PointLight off with switch - 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: Turn PointLight off with switch (/thread-15960.html) |
Turn PointLight off with switch - Ananaias - 06-08-2012 I used PointLight to make a room very bright, then all lights/lamps will be turned off when the player uses a switch that is needed to progress. I figured out the code for making the lamps turn off, but I'm having a hard time with turning PointLights off. Any help? EIDT: dammit, put this in the wrong spot on accident. Sorry ;~; RE: Turn PointLight off with switch - Dutton - 06-08-2012 [BadJoke] EIDT = Electrical IDentification Technology [/BadJoke] EDIT: I'm not sure that your able to do that, but if possible it could open up some possibilities RE: Turn PointLight off with switch - Traggey - 06-08-2012 Moved to development support. RE: Turn PointLight off with switch - Your Computer - 06-08-2012 SetLightVisible. RE: Turn PointLight off with switch - Ananaias - 06-08-2012 This is my coding so far: PHP Code: void OnStart() I'm assuming I would replace "SetLampLit" with "SetLightVisible"? EDIT: decided to try that, and I guess that's wrong. Got this error: Sorry if this is an easy fix, I'm still very new to this stuff. EDIT2: Awesome, I figured it out. SetLightVisible("point1room2", false); is what I was looking for. Thanks |