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
Unexpected end of file!! ;(
cooleoj Offline
Junior Member

Posts: 24
Threads: 6
Joined: Aug 2011
Reputation: 0
#1
Unexpected end of file!! ;(

So i get a error when i start my map and i really suck at scripting so i could really need some help Smile



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

}


That is my script.

__________________________________________________
http://www.youtube.com/user/TheMRcooleoj20?feature=mhee
10-06-2011, 07:41 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)