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
Quick Question.
Author Message
GreyFox Offline
Member

Posts: 162
Joined: Jul 2011
Reputation: 2
Post: #1
Quick Question.
Just a quick question.

I Have this hallway that you walk into and then you click a door a monster spawns (in the room that you tried opening) and I want it so if you do run away at then end of the hallway the door slams shut in your face. (Only when leaving though)

Don't you write the line of code

AddEntityCollideCallback("Player", "DoorSlam_5", "CollideDoorSlam_5", true, -1);

And Put -1 Instead of 1? 1= walking into it, 2= both ways, -1= walking into oppisite way? Is this correct? If it's not correct do you mind just helping me how to make the door close while running away?

Thank you
-Grey Fox

Current Project
Forgotten
07-26-2011 01:22 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Quick Question. - GreyFox - 07-26-2011 01:22 AM
RE: Quick Question. - Obliviator27 - 07-26-2011, 01:27 AM
RE: Quick Question. - GreyFox - 07-26-2011, 01:56 AM
RE: Quick Question. - Obliviator27 - 07-26-2011, 03:00 AM
RE: Quick Question. - GreyFox - 07-26-2011, 05:36 AM
RE: Quick Question. - Wonderbread - 07-26-2011, 06:20 AM
RE: Quick Question. - MrCookieh - 07-26-2011, 10:57 AM
RE: Quick Question. - GreyFox - 07-26-2011, 03:54 PM



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