Frictional Games Forum (read-only)
Can anyone tell me whats wrong? - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Can anyone tell me whats wrong? (/thread-13497.html)



Can anyone tell me whats wrong? - ammislol - 02-21-2012

Have i forgotten something?

I have a Level door, that takes me to my other map. But every time i try to enter the door i get this error.


RE: Can anyone tell me whats wrong? - Your Computer - 02-21-2012

It looks like you forgot to put "void" before OnLeave, and it also seems that you forgot to close or end something. However, i can't say for sure until you post your code.


RE: Can anyone tell me whats wrong? - ammislol - 02-21-2012

(02-21-2012, 09:28 PM)Your Computer Wrote: It looks like you forgot to put "void" before OnLeave, and it also seems that you forgot to close or end something. However, i can't say for sure until you post your code.

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}



void OnEnter()
{
void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}




void OnLeave()
{
}


RE: Can anyone tell me whats wrong? - Linus Ă…gren - 02-21-2012

PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_15""ActivateMonster1"false0);
}

void OnEnter()
{

}

void OnLeave()
{

}

void ActivateMonster1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("waterlurker_2"true);


You need your function outside any other function as long as you don't make your own.


RE: Can anyone tell me whats wrong? - ammislol - 02-21-2012

(02-21-2012, 09:35 PM)junkfood2121 Wrote:
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_15""ActivateMonster1"false0);
}

void OnEnter()
{

}

void OnLeave()
{

}

void ActivateMonster1(string &in asParentstring &in asChildint alState)
{
SetEntityActive("waterlurker_2"true);


You need your function outside any other function as long as you don't make your own.