06-26-2011, 10:49 PM
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.
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.