ifnotunitthenqerror('A unit needs to be selected or specified. Use teleport -showunitid to get a unit\'s ID.')end
ifnotpos.xorpos.x==-30000thenqerror('A position needs to be highlighted or specified. Use teleport -showpos to get a position\'s exact xyz values.')end