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
#8
RE: Making a scream play when player enters a room?

FATAL ERROR: Could not load script file

main (8,1) : ERR : Expected ';'
main (14,1) : ERR: Expected ';'
And here's the code

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);
   PlayerStartLookAt("LookArea_1", 1, 1, "")
}

My script areas are called

"Scream_1" for the scream
"Look_Area_1" for the look

I'm not sure if I did the PlaySoundAtEntity right or not >_>
(This post was last modified: 03-23-2011, 03:19 AM by Austums.)
03-23-2011, 03:17 AM
Find


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



Users browsing this thread: 1 Guest(s)