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
Unexpected end of file?!? plz help..
Loquendostrogg Offline
Junior Member

Posts: 4
Threads: 1
Joined: Apr 2012
Reputation: 0
#8
RE: Unexpected end of file?!? plz help..

I've got an error like that one with my file, don't know what's wrong.

Please hel this noob

Here's the file



//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts


void TimerDoneLookAt(string &in asTimer)
{
StopPlayerLookAt();
}

////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "scareArea1", "func_slam", true, 1);

StartPlayerLookAt("LookArea1", 2, 2, "");


AddTimer("donelook", 2.5f, "TimerDoneLookAt");
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Mansiondoor1", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);

AddEntityCollideCallback("Player","areascripta", "function1", true,1);

AddEntityCollideCallback("Player","sremarea","function2", true,1);
}


////////// Callback Functions!!!

void function1(string &in asParent, string &in asChild, int alState)
{
if (alState == 1)
{
GiveSanityDamage(100.0f, true);
}
if (alState == -1)
{

}

///Function 2

void function2 (string &in asParent, string &in asChild, int alState)

{
if (alState == 1)
{
PreloadSound("15_the_big_scream1.snt");
}
if (alState == -1)
{

}
}
////////////////////////////
// Run when map is loaded
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
SetupLoadScreen("Loading", "", 1,"Loading_Level_Picture.jpg");
}
05-18-2012, 12:29 AM
Find


Messages In This Thread
Unexpected end of file?!? plz help.. - by Jumpman - 05-11-2011, 04:49 PM
RE: Unexpected end of file?!? plz help.. - by Loquendostrogg - 05-18-2012, 12:29 AM



Users browsing this thread: 2 Guest(s)