public bool CheckEntityInZone(BaseCombatEntity _entity, Vector3 _zoneKey, int _maxDistance) { if (_entity.Distance(_zoneKey) < _maxDistance) { DebugMessage(2, string.Format("entity Distance: {0} from tested zone", _entity.Distance(_zoneKey))); DebugMessage(1, "Entity In zone, Returning True"); return(true); } else { DebugMessage(2, string.Format("entity Distance: {0} from tested zone", _entity.Distance(_zoneKey))); DebugMessage(1, "Entity out of zone, Returning False"); return(false); } }