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!! ;(
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#4
RE: Unexpected end of file!! ;(

void OnStart()

{
AddEntityCollideCallback("Player", "scarearea1", "func_slam", true, 1);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("scaredoor1", 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);
AddUseItemCallback("", "hollowneedle1", "lockeddoor1", "FUNCTION", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("lockeddoor1", false, true);
PlaySoundAtEntity("", "unlock_door", "lockeddoor1", 0, false);
RemoveItem("hollowneedle1");
}

AddEntityCollideCallback("Player", "monstertrigger1", "MonsterFunction", "true", 1);
{
void MonsterFunction(string &in asParent, string &in asChild, int alState);
}

{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 4, "");
}

This might work.

BTW: if it works, don't be mad if your script doesn't work because it's like Gamemakingdude said "completly wrong".
If you can launch your map without any errors, tell me and I can fix the script for you.

[Image: 44917299.jpg]Dubstep <3
10-06-2011, 08:09 AM
Find


Messages In This Thread
Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 07:41 AM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 07:59 AM
RE: Unexpected end of file!! ;( - by xtron - 10-06-2011, 08:09 AM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 08:13 AM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 08:36 AM
RE: Unexpected end of file!! ;( - by Apfel - 10-06-2011, 02:08 PM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 08:46 AM
RE: Unexpected end of file!! ;( - by schmupper - 10-06-2011, 02:07 PM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 03:03 PM
RE: Unexpected end of file!! ;( - by Obliviator27 - 10-06-2011, 04:11 PM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 06:13 PM
RE: Unexpected end of file!! ;( - by schmupper - 10-06-2011, 09:48 PM



Users browsing this thread: 1 Guest(s)