Frictional Games Forum (read-only)
If get swing door opened? - 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: If get swing door opened? (/thread-15998.html)



If get swing door opened? - Shives - 06-09-2012

Hi
I created a creepy room with a door. If you open the door and look into that room Something should happen.
But I need an "If" which goes If the door is opened but I just can find an "If" function which goes if the door is closed. So I wanted to ask, does an "If Swing Door opened" exist?


RE: If get swing door opened? - Ermu - 06-09-2012

void checkdooropened(string &in asParent, string &in asChild, int alState)
{
if(GetSwingDoorClosed("yourdoorname") == false)
{
insert your script here
}
}

Try this type of a thing

E: I believe it's this way
(GetSwingDoorClosed("door1")== false)
checks if the door is open, if it's closed, it will do nothing

Remember to change the "string" to fitting your way of triggering it.