Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If get swing door opened?
Shives Offline
Member

Posts: 154
Threads: 41
Joined: Jan 2012
Reputation: 1
#1
If get swing door opened?

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?

My Custom Story
http://www.frictionalgames.com/forum/thread-12587.html

Sorry for bad English


06-09-2012, 04:47 PM
Find
Ermu Offline
Member

Posts: 86
Threads: 13
Joined: Jan 2012
Reputation: 2
#2
RE: If get swing door opened?

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.
(This post was last modified: 06-09-2012, 04:57 PM by Ermu.)
06-09-2012, 04:52 PM
Find




Users browsing this thread: 1 Guest(s)