Firstly, get rid of "player = me;".
Its un-necessary in an enemy function and may cause problems.
"player" ISNT instanced like "me" or "you", its a public pointer.
So changing its contents affects all functions/action that are using it.

Secondly, try replacing your "STATE==1" block with this....
Code:
...
   if(my.STATE == 1)
   {
      you = NULL;
      c_scan(my.x,my.pan,vector(1000,0,900),SCAN_ENTS | SCAN_FLAG2 | IGNORE_ME);
      my.ANIMATION += 10 * time_step;
      ent_animate(my, "idle", my.ANIMATION, ANM_CYCLE);
      if(you)
      {
         if(your.CREATOR)
         {
            my.ANIMATION = 0;
            my.STATE = 2;
            enemy = your.CREATOR;
         }
      }
   }
...




"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial