The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#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


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



Users browsing this thread: 1 Guest(s)