Distance from AI to Point

How do i figure out what the distance is between my AI and a specific point? What i need is the Pathfinder to return the distance the AI would have to walk to get to a certain point… I need it for an AI which i am creating. If my explanation is not good enough - then tell me and i’ll try rephrasing