[solved] Enemy aggressive when point "flashlight" to him

Hi, i’m using a flashlight model with a Directional Light attached to it, and I have a enemy in the game, I need to make this: If I point flashlight to him, it attacks me.

this is an example for you, hope this helps. function React was the message sent to run this first script.

   #pragma strict

   function React () {
   animation.Play("whateveryoucalledyouranimation");
   //or//
   animation.CrossFade ("attackanimation");
  else
  animation.CrossFade ("idleanimation");
   }
    script 2
    this code triggers it.

   #pragma strict
   function OnCollisionEnter(col : Collision) {
   if(col.gameObject.name == "objectcollidenamehere"){
   gameObject.Find("objecttosendmessageto").SendMessage("React");
   }
   }