Frictional Games Forum (read-only)
SetSwingDoorDisableAutoClose does not work - 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: SetSwingDoorDisableAutoClose does not work (/thread-20598.html)



SetSwingDoorDisableAutoClose does not work - darksky - 03-03-2013

hi
i need to open a door dynamicaly using propforce
the thing is, SetSwingDoorDisableAutoClose does not work.

Code:
[...]
    SetSwingDoorDisableAutoClose("door", true);
    SetSwingDoorLocked("door", false, true);    
    AddTimer("",2,"asd");
   [...]

void asd(string &in asTimer){
    AddPropForce("door", 10000, 0, 0, "world");
}

i see the door going berserk because the high force, but it does not stay open.
when i try open the door a bit manualy the door auto-closes, too.

i am using the standard mansion door


RE: SetSwingDoorDisableAutoClose does not work - PutraenusAlivius - 03-03-2013

FULL SCRIPT, PLEASE!


RE: SetSwingDoorDisableAutoClose does not work - darksky - 03-03-2013

no need for full script.

this is the relevant part. the rest is working properly and has no other function effecting the door


RE: SetSwingDoorDisableAutoClose does not work - PutraenusAlivius - 03-03-2013

Try changing the true in the SetSwingDoorDisableAutoClose to false.


RE: SetSwingDoorDisableAutoClose does not work - darksky - 03-03-2013

well, i have tried it before but since false means disableautoclose = false , it didn't work Smile


RE: SetSwingDoorDisableAutoClose does not work - FlawlessHappiness - 03-03-2013

Instead of doing that, then set the door's "Open Amount" to 0.1 or 0.2


RE: SetSwingDoorDisableAutoClose does not work - Your Computer - 03-03-2013

Disabling auto-close does not place the door in an opened state. You need SetSwingDoorClosed for that.


RE: SetSwingDoorDisableAutoClose does not work - darksky - 03-03-2013

ok, i think i forgot to mention that the door is initially locked.

i tried the open amount, but it seems to me that the open amount is applied after map load, not after the door is unlocked. so it did not work.

then i tried it with using doorClosed = false
Code:
void abc(string &in asParent,string &in asChild, int alState){    
    SetSwingDoorDisableAutoClose("door", false);    //1
    SetSwingDoorLocked("door", false, false);//2
    SetSwingDoorClosed("door", false, false);//3    
    AddTimer("",2,"asd");
}

void asd(string &in asTimer){
    AddPropForce("door", 1000, 0, 0, "world");
    AddDebugMessage("force",false);
}

but this did not work either, no matter the order of the 3 calls.
is still something wrong?

if not, and it's not working for an unknown reason, i think i will just set an other door active, not locked, open amount 0.15 , and apply force on that door >_>