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