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

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#6
RE: Unexpected end of file!! ;(

PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player", "scarearea1", "func_slam", true, 1);
    
AddEntityCollideCallback("Player", "monstertrigger1", "MonsterFunction", "true", 1); 
    
AddUseItemCallback("", "hollowneedle1", "lockeddoor1", "FUNCTION", true);
} 

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);

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


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, "");
} 


Fixed it i found an ; at the end of one of your procedures.

Rep if like me or im helpful or you love my stories!
Stephanos house
10-06-2011, 08:27 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 Gamemakingdude - 10-06-2011, 08:27 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: 2 Guest(s)