It is the Aum54.
But vec_dist is a good choice too.
Code:
if(vec_dist(player.x,you.x) < 40)//if the distanc between the player and the you entity is smaller then 40 quants talk
{
   talk();
}