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.17 (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
What is wrong?
Janni1234 Offline
Member

Posts: 134
Threads: 24
Joined: Jan 2011
Reputation: 1
#1
What is wrong?

void OnStart()
{
PlayMusic("02_amb_safe.ogg", true, 0.7f, 1, 0, true);
AddEntityCollideCallback("Player", "breath", "breath", 1, true);
AddEntityCollideCallback("Player", "break", "break", 1, true);
}


void breath(string &in asParent , string &in asChild , int alState)
{
StartPlayerLookAt("look1", 4.0, 6.0f, "");
StartPlayerLookAt("look2", 4.0, 6.0f, "");
StartPlayerLookAt("look3", 4.0, 6.0f, "");
PlaySoundAtEntity("", "00_creak.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_breath1.snt", "Player", 0, false);
}


void break(string &in asParent , string &in asChild , int alState)
{
StartPlayerLookAt("a", 4.0, 6.0f, "");
StartPlayerLookAt("b", 4.0, 6.0f, "");
StartScreenShake(1.0f, 5.98, 1.0f, 2.0f);
AddTimer("Timer", 3.1f, "fadeout");
PlaySoundAtEntity("", "general_rock_rumble.snt", "Player", 0, false);
}


void fadeout(string &in asTimer)
{
FadeOut(2)
AddTimer("Timer", 2f, "boom");
}

void boom(string &in asTimer)
{
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);
AddTimer("Timer", 1.0f, "change");
}


void change(string &in asTimer)
{
ChangeMap("CHURCH2.map", "PlayerStartArea_1", "", "");
}


He says: Unexpected Endentifier 19, 6
I need help Smile
Sorry i mean identifier
(This post was last modified: 05-17-2011, 03:02 PM by Janni1234.)
05-17-2011, 03:00 PM
Find


Messages In This Thread
What is wrong? - by Janni1234 - 05-17-2011, 03:00 PM
RE: What is wrong? - by Acies - 05-17-2011, 03:08 PM
RE: What is wrong? - by Janni1234 - 05-17-2011, 03:26 PM
RE: What is wrong? - by Roenlond - 05-17-2011, 04:04 PM
RE: What is wrong? - by Janni1234 - 05-17-2011, 04:13 PM
RE: What is wrong? - by Roenlond - 05-17-2011, 04:32 PM
RE: What is wrong? - by Janni1234 - 05-17-2011, 04:46 PM



Users browsing this thread: 2 Guest(s)