[SOLVED] Lights shine trough wall - 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 (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: [SOLVED] Lights shine trough wall (/thread-7144.html) |
[SOLVED] Lights shine trough wall - iNs - 04-01-2011 Hey there. I noticed that the candles in one room are shining trough the wall into the other room next to it. So i can see the light of the candles behind the wall and on the floor in the other room, too. How to fix that? Regards iNs RE: Lights shine trough wall - Pandemoneus - 04-01-2011 In short? No fix available, put candle further away. RE: Lights shine trough wall - iNs - 04-01-2011 wow... that are really bad news. Its looks not really good when I leave a room, and outside in the hallway you can see the light of the room... Is there a script to turn of a candle in a room, when i leave it? Edit: I will try the following function with a ScriptArea in the door: Code: void SetLampLit(string& asName, bool abLit, bool abEffects); Edit 2: Is there a function to get the Status of a light? Or do i have to take LocalVariable and Interact-function? RE: Lights shine trough wall - Pandemoneus - 04-01-2011 All functions are listed on the wiki page, so if there isn't a function checking the status of the light on it, then there probably isn't one. So your second guess in the second edit was right. RE: Lights shine trough wall - Nye - 04-01-2011 (04-01-2011, 06:30 PM)Pandemoneus Wrote: All functions are listed on the wiki page, so if there isn't a function checking the status of the light on it, then there probably isn't one. Yup and big thanks to Pandemoneus for improving the script functions page to make it easier for newbies RE: Lights shine trough wall - iNs - 04-02-2011 I just did what I was thinking about and created some script areas to turn the candle lights on/off and it works great. I just figured out some positions where the player wont even notice that I switched the status of the candles, when he leaves or enters the room. It is not good, that the lights shine trough walls, but I found a solution that works. So everything is fine now. --- (04-01-2011, 06:34 PM)Nye Wrote: Yup and big thanks to Pandemoneus for improving the script functions page to make it easier for newbies Yes, the 'script functions page' is really usefull. Thank you for sharing it. Regards iNs |