Frictional Games Forum (read-only)
triggering a monster area 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: triggering a monster area ERROR (/thread-17539.html)



triggering a monster area ERROR - timonenluca - 08-06-2012

Code:
////////////////////////////
// Run when entering map
void OnEnter()
{
AddEntityCollideCallback("player","script_1","monster",true,1);
}

void monster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1",true);

}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}

It starts but when i go into the area (Script_1 it doesnt trigger Sad) can someone help me wiht this? im super new to scripting im learning it for about 10 min now but thanks for reading


RE: triggering a monster area ERROR - Lizard - 08-06-2012

AddEntityCollideCallback("player","script_1","monster",true,1);


Try to set player with a capital P


RE: triggering a monster area ERROR - timonenluca - 08-06-2012

(08-06-2012, 06:53 PM)ZereboO Wrote: AddEntityCollideCallback("player","script_1","monster",true,1);


Try to set player with a capital P
thanks it worked man that wa stupid haha xD