Shives
Member
Posts: 154
Threads: 41
Joined: Jan 2012
Reputation:
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?
|
|
06-09-2012, 04:47 PM |
|
Ermu
Member
Posts: 86
Threads: 13
Joined: Jan 2012
Reputation:
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 |
|