return(getNearestUnit(self_side, pos, length, true, types));
 return(getNearestUnit(self_side, pos, length, true, null, allowDead, types));