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.13 (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
Door slams in your face.
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
Door slams in your face.

How can I make it so when I walk towards a door and when I get really close, it SLAMS and makes a huge slamming noise and then locks itself.

Any possible way to do this?

I know I just posted a thread about something else, but I will need all the help I can get.

Here is my script (I just need to know where to place the door script.)

void OnStart()
{
AddEntityCollideCallback("Player" , "Monsterscare" , "MonsterFunc1" , true , 1);
AddEntityCollideCallback("Player" , "Monsterscare2" , "MonsterFunc2" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster_scare" , true);
ShowEnemyPlayerPosition("Monster_scare");
GiveSanityDamage(200, true);
}

void MonsterFunc2(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster_scare2" , true);
ShowEnemyPlayerPosition("Monster_scare2");
GiveSanityDamage(10, true);
}

Also how do I make a door start in a open position? I tried to rotate it and place it but that didn't work.

Any help would be much appriciated!

Angerpull. Angel
(This post was last modified: 06-26-2011, 11:55 PM by Angerpull.)
06-26-2011, 10:49 PM
Find


Messages In This Thread
Door slams in your face. - by Angerpull - 06-26-2011, 10:49 PM
RE: Door slams in your face. - by Rownbear - 06-26-2011, 11:27 PM
RE: Door slams in your face. - by Angerpull - 06-26-2011, 11:51 PM
RE: Door slams in your face. - by xtron - 06-26-2011, 11:46 PM
RE: Door slams in your face. - by Rownbear - 06-27-2011, 12:14 AM
RE: Door slams in your face. - by Angerpull - 06-27-2011, 12:27 AM



Users browsing this thread: 1 Guest(s)