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
Scripting Problems !
AmnesiaIsScary :S Offline
Junior Member

Posts: 22
Threads: 3
Joined: Sep 2011
Reputation: 1
#8
RE: Scripting Problems !

Ok i went through a part of it and i tried to do the :
StartPlayerLookAt("monsterdoor", 5, 10, "");

now i tried to stop it and i didn't know how .. this is my whole hps, Can you show me what to put to stop it ?

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Scare", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "Monster", true, 1);
}

void Scare(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(10, true);
PlayGuiSound("amb_alert.snt", 0.5f);

PlayGuiSound("react_pant.snt", 0.5f);
StartPlayerLookAt("monsterdoor", 5, 10, "");
AddTimer("", 0.5f, "TimerScare");
}

void Monster(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(10, true);
PlayGuiSound("amb_alert.snt", 0.5f);

PlayGuiSound("react_pant.snt", 0.5f);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

And when I meant bigger scares i Meant like different scares , like you did the earthquake and som people make him to get scared more (I think they raise the scaredamage)

Oh and another thing Big Grin .. How to you spawn a monster when entering a script area ?

09-14-2011, 05:52 AM
Find


Messages In This Thread
Scripting Problems ! - by AmnesiaIsScary :S - 09-12-2011, 02:39 PM
RE: Scripting Problems ! - by Obliviator27 - 09-12-2011, 05:52 PM
RE: Scripting Problems ! - by Itskody - 09-12-2011, 06:04 PM
RE: Scripting Problems ! - by AmnesiaIsScary :S - 09-13-2011, 07:40 PM
RE: Scripting Problems ! - by Itskody - 09-13-2011, 08:02 PM
RE: Scripting Problems ! - by AmnesiaIsScary :S - 09-13-2011, 08:19 PM
RE: Scripting Problems ! - by Itskody - 09-14-2011, 12:35 AM
RE: Scripting Problems ! - by AmnesiaIsScary :S - 09-14-2011, 05:52 AM
RE: Scripting Problems ! - by AmnesiaIsScary :S - 09-14-2011, 04:10 PM
RE: Scripting Problems ! - by Your Computer - 09-14-2011, 04:24 PM
RE: Scripting Problems ! - by AmnesiaIsScary :S - 09-14-2011, 05:16 PM
RE: Scripting Problems ! - by Your Computer - 09-14-2011, 05:22 PM
RE: Scripting Problems ! - by AmnesiaIsScary :S - 09-14-2011, 05:25 PM



Users browsing this thread: 1 Guest(s)