Frictional Games Forum (read-only)
Script Error - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Script Error (/thread-7004.html)



Script Error - Ianlis - 03-22-2011

Every time I try to run my map, I get a 'End error' message.
Here's my script:
Code:
void OnStart()
{
  AddEntityCollideCallback("Player" , "Monster_Spawn" , MonsterFunc1" true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
  SetEntityActive("servant_grunt_1" , true);
}



RE: Script Error - Viperdream - 03-22-2011

Code:
AddEntityCollideCallback("Player" , "Monster_Spawn" , "MonsterFunc1",  true , 1);

You missed a few , and " in that one. Fixed it for you


RE: Script Error - Ianlis - 03-22-2011

You sir, are a lifesaver.


RE: Script Error - palistov - 03-23-2011

Yeah I've run into a few problems just because a " was missing...those damn little things