thanks...but I probably diden't explain very well

I need something like:
Code:
if(vec_dist(my.x,player.x)<(vec_dist(my.x,vector(my.x+my.max_x,my.y+my.max_y,my.z))))
{
player is within the bounding box
}

...unfortunately this doesen't seem to work