OK, if I have you right,
You need to find the distance between the 2 actors. Get Vector Length.
If length over x distance, move ghost back with range.
This is not right, but you are looking for something like this?