How to make door open?? - 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: How to make door open?? (/thread-8930.html) |
How to make door open?? - Dizturbed - 07-03-2011 how do i make a door open, without the player needing to touch it? Examples pleaaaz? RE: How to make door open?? - rojkish - 07-03-2011 SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects); RE: How to make door open?? - Dizturbed - 07-03-2011 alriiight, ill test it but i thought it was int GetSwingDoorState(string& asName);Returns an integer depending on how far the door is opened. -1 = angle is close to 0°, 1 = angle is 70% or higher of max, 0 = inbetween -1 and 1. RE: How to make door open?? - Roenlond - 07-03-2011 Nope. That checks whether or not a door is opened or closed and you can use it to run functions only if the door is closed, for example. |