I'm missing something horribly obvsious I think, but assuming $tid is the SpawnID of my target
/varset disttotarget $spawn(@tid,distance)
Would this place the distance to the mob I have targeted into disttotarget, if so it makes my life a hell of a lot easier, and /hug to whoevers idea that was :)
