NAV_WithinSphere

Checkes whether the object given in tag is within the nav sphere of the calling navpoint. The diameter of this sphere is a property of the Navpoint object.

function NAV_WithinSphere(tag); wcp;

  if (NAV_WithinSphere(Player)) then
    NAV_ActivateSelf;