Prison section door close? - 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: Prison section door close? (/thread-18830.html) |
Prison section door close? - Damascus - 10-18-2012 I'm trying out a script that will only trigger when a prison_section type of door is closed. It works fine if I run the script before I open the door, but if I open it and then close it, the script keeps coming back as saying that it's open. I've tried shutting it and closing the padlock latch too, but the script still says the door is open. Is there a way to fix this? I've already looked in the entity to try and enable auto-closing it, but there doesn't seem to be an option for it. RE: Prison section door close? - The chaser - 10-18-2012 What kind of door? A normal one, a vertical one? Also, put your .hps file, please. Or the problematic part, if you wish. RE: Prison section door close? - Damascus - 10-18-2012 It's a swing door. But it's different from the others in that it doesn't auto-close and has another latch for the padlock. PHP Code: void OnStart() Basically it's playing the "dooropen" message even after I've closed the door and the latch. And to head off any questions, I have also tried simply "if (GetSwingDoorClosed("prison_section_1"))" but I get the same result. RE: Prison section door close? - Damascus - 10-18-2012 Okay, I actually solved the problem in a really easy way, so never mind! PHP Code: void OnStart() Now when I use the padlock, the door will close, then the latch will close, and it locks with the padlock on it! |