I think you have to tell the game exactly where the unit is. I don't know of any way to get that information if it moves away from where it was spawned.