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 - error :<
Allu442 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2014
Reputation: 0
#1
Unexpected end of file - error :<

When i start my story, it says error : Unexpected end of file

I tried to make 3 scriptareas and grunts in same level :

Script:
--------------------------------------------------------------------
void OnStart()
{
AddUseItemCallback("", "key_study_1", "castle_1", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "Scary_1", true, 1);
AddEntityCollideCallback("Player","ScriptArea_2","Scary_2",true,1);
AddEntityCollideCallBack("Player","ScriptArea_3, "Scary_2",true,1);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}

void ScriptArea_1(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "enabled.snt", "Player", 0, false);
GiveSanityBoostSmall();
}
void Scary_1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt1", true);
AddPropImpulse("grunt1", 10000, 0, 0, "world");
}

void Scary_2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt2", true);
AddPropImpulse("grunt2", 10000, 0, 0, "world");
}

void ScriptArea_3(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "enabled.snt", "Player", 0, false);
GiveSanityBoostSmall();
}
void Scary_3(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt3", true);
AddPropImpulse("grunt3", 10000, 0, 0, "world");
}
03-16-2014, 05:23 PM
Find


Messages In This Thread
Unexpected end of file - error :< - by Allu442 - 03-16-2014, 05:23 PM
RE: Unexpected end of file - error :< - by Neelke - 03-16-2014, 05:34 PM



Users browsing this thread: 1 Guest(s)