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
ammislol Offline
Junior Member

Posts: 24
Threads: 6
Joined: Feb 2012
Reputation: 0
#1
Unexpected end of file

Hello. When I try to open my custom map i get an error telling me Unexpected end of file. I have 2 maps and i have no problem opening the other. And the script looks pretty much the same.
The script look like this. Anyone can help me with this? So I dont get any more errors
Thanks in advance


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}

void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}

void OnEnter()
{
AddEntityCollideCallback("Player", "pooarea", "func_slam", true, 1);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
SetPlayerActive(false);
StartPlayerLookAt("mansion_1", 3.0f, 5.0f, "");
AddTimer("timer01", 1.5f, "StopLook");

void StopLook(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}
02-22-2012, 07:53 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Unexpected end of file

You need to close your braces in your func_slam function

02-22-2012, 08:03 PM
Find
ammislol Offline
Junior Member

Posts: 24
Threads: 6
Joined: Feb 2012
Reputation: 0
#3
RE: Unexpected end of file

(02-22-2012, 08:03 PM)palistov Wrote: You need to close your braces in your func_slam function
Oh i found it, thank you
(This post was last modified: 02-22-2012, 08:37 PM by ammislol.)
02-22-2012, 08:06 PM
Find




Users browsing this thread: 1 Guest(s)