After c_scan put

if(you==player)
{
it has detected the player so put your chasing code here laugh
}