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
Making a scream play when player enters a room?
Austums Offline
Member

Posts: 60
Threads: 11
Joined: Mar 2011
Reputation: 0
#12
RE: Making a scream play when player enters a room?

So does this all look good then?

void OnStart()
{
AddEntityCollideCallback("Player", "Scream", "Scream_1", true, 1);
}
void Scream_1(string &in asParent, string &in asChild, int alStates)
{
   AddTimer("Somenamedoesntreallymatter", 2.0f, "Scream_Trigger");
}

void Scream_Trigger(string &in asTimer)
{
   PlaySoundAtEntity("Scream_1", "04_scream.snt", "Scream_1", 0, false);
   StartPlayerLookAt("LookArea_1", 1, 1, "");
   StopPlayerLookAt();
}
void LookArea_1(string &in as Parent, string &in as Child, int alStates)
{
   AddTimer("Somenamedoesntreallymatter", 2.0f, "LookArea_Trigger");
}

Just got a new error.

"main (16,31) : ERR: Expected ')' or ','
(This post was last modified: 03-23-2011, 03:51 AM by Austums.)
03-23-2011, 03:49 AM
Find


Messages In This Thread
RE: Making a scream play when player enters a room? - by Austums - 03-23-2011, 03:49 AM



Users browsing this thread: 1 Guest(s)