Frictional Games Forum (read-only)

Full Version: triggering a monster area ERROR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
AddEntityCollideCallback("player","script_1","monster",true,1);


Try to set player with a capital P
(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