Frictional Games Forum (read-only)
opening door/other - 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: opening door/other (/thread-7189.html)



opening door/other - savior10946 - 04-03-2011

void OnStart()
{
AddEntityCollideCallback("Player" , "room_1" , "script_1" , true , 0);
}

void script_1(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorClosed("closet_1", false, false);
SetSwingDoorDisableAutoClose("closet_1", true);
}

Why wont the closet door open when i step up to it?Ive been trying to do this for 2 days and I cant get it why?


RE: opening door/other - Pandemoneus - 04-03-2011

You will need a push with addBodyForce or addBodyImpulse to open the door.


RE: opening door/other - savior10946 - 04-03-2011

whats the script for the force?