Frictional Games Forum (read-only)
Door not auto-closing - 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: Door not auto-closing (/thread-23655.html)



Door not auto-closing - Damascus - 10-21-2013

I'm currently using the wood_panneling_secret_door_01_painting entity from MFP in my story, and attempting to use a lever to make it swing open. However, it seems like no matter what I do, I can't turn off AutoClose. Here's my current script:

PHP Code:
void TimerPushCandle(string &in asTimer)
{
    
SetSwingDoorLocked("castle_4"falsefalse);
    
SetSwingDoorClosed("castle_4"falsefalse);
    
SetSwingDoorDisableAutoClose("castle_4"true);
    
AddBodyForce("castle_4_Body_door"0.0f0.0f8000.0f"world");


This script works on all my other doors, including MFP's secret_door02 entity. But when I run the script on this door, it unlocks but does not swing open. And when I swing it open and closed manually, it still auto-closes when it gets close enough to fully closed. Any help?


RE: Door not auto-closing - Rapture - 10-22-2013

Make a Area that when your "secret_door02" touches, it freezes it.

As a test, wait a second and unfreeze it and see what it does.


RE: Door not auto-closing - Damascus - 10-23-2013

I ended up mostly fixing the problem; "Body_door" was supposed to be "door_body."

It still auto-closes, but the force pushed it open, and I just disabled interaction.