Ok so now it's like this:
void OnStart()
{
AddEntityCollideCallback("Player", "MonsterDoor", "CollidePlayerWithMonsterDoor", true, 1);
}
void CollidePlayerWithMonsterDoor(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("Debug Message: Area Collided! Now ScaryDude must be activated!", false);
}
SetEntityActive("Scarydude", true);
FadeRadialBlurto(1.0f, 1.0f);
PlaySoundAtEntity("MonsterDoor", "react_scare", "Player", 0.0, false);
ShowEnemyPlayerPosition("Scarydude");
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Anything wrong? What I think might be wrong is the debug messages place in the script, I think I put it in the wrong place since it's not working at all.
''Sick, twisted child... You'll burn for this!''