Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If get swing door opened?
Author Message
Shives Offline
Member

Posts: 154
Joined: Jan 2012
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Ermu Offline
Member

Posts: 89
Joined: Jan 2012
Reputation: 2
Post: #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.

Plague Forest - Unreleased, currently on hold.
(This post was last modified: 06-09-2012 04:57 PM by Ermu.)
06-09-2012 04:52 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)