Or, you can make a gamelogic (Or is it a trigger?), under the unit your setpos-ing..
And use the distance command on it and the unit..
Because gamelogics are always created as sealevel (I'm sure)
I might be wrong, and it might be triggers.. or I might be totaly wrong, and my idea wont work..
- Ben