If i unterstood you right...
I think c_scan will always set YOU to nearest entity found. But u want to check further entitys right? Maybe this thread helps you.

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=48405&Number=405484#Post405484

Edit: Or react in a event to the c_scan fex
Code:
void _i_was_scanned()
{
 if(event_type == EVENT_DETECT || event_type == EVENT_SCAN)
  if(my.player_assign == 1) //or if(you)if(you.anything == my.anything) whatever
   set(my,INVISIBLE);
}
..
action Whatever()
{
 ..
 my.emask |= ENABLE_SCAN|ENABLE_DETECT; //maybe scan is enough dont know right now.
 my.event = _i_was_scanned;
 ..
}


Last edited by rayp; 09/13/12 15:21.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;