30.05.2014, 16:48
Add a boolean variable whichs checks the tate of the door : opened or closed.
Then check it before moving the door object (I think you'll use Move(Dynamic)Object). If it's opened and the player is near of the door, return 1.
If it's not open but the player is near of the door, open it.
If it's open but the player isn't near of the door, close it.
Then check it before moving the door object (I think you'll use Move(Dynamic)Object). If it's opened and the player is near of the door, return 1.
If it's not open but the player is near of the door, open it.
If it's open but the player isn't near of the door, close it.