vec_dist(player.x, my.x > 30)

should be

vec_dist(player.x, my.x) > 30