Frictional Games Forum (read-only)

Full Version: How to make door open??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how do i make a door open, without the player needing to touch it? Big Grin
Examples pleaaaz? Smile
SetSwingDoorClosed(string& asName, bool abClosed, bool abEffects);
alriiight, ill test it Smile 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. Tongue
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.