(06-18-2011, 09:37 PM)Tanshaydar Wrote:  AddDebugMessage(string& asString, bool abCheckForDuplicates);
For this and more: http://wiki.frictionalgames.com/hpl2/amn..._functions
Simply, add a:
AddDebugMessage("Debug Message: Area Collided! Now ScaryDude must be activated!", false);
Like this?
////////////////////////////
// Run first time starting map
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);
ShowEnemyPlayerPosition("Scarydude");    
FadeRadialBlurTo(1.0f, 1.0f);
PlaySoundAtEntity("MonsterDoor", "react_scare.snt", "Player", 0.0f, true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
It's not working if I do that, maybe the area doesn't collide after all... If that is the case, how could I make it collide with the player?
(Damn this is turning into a big thread for one simple script 

)
			
 
			
			
''Sick, twisted child... You'll burn for this!''