People living in a county-owned apartment building in Endwell had to leave in the middle of the night because of nightmarish conditions with some units flooded and some without heat.

Police and fire units were sent to the complex at 3 Delaware Avenue around 12:30 a.m. Saturday.

According to a statement released by Broome County Executive Jason Garnar's office, water pipes had burst and some apartments had no heat. There also are problems with the building's fire alarm system.

The statement indicated nearly one-third of the 51 units in the complex had been occupied. Some residents decided to stay with friends or relatives.

An update provided by the county Saturday afternoon reported the damaged apartments are vacant. Those units now have been isolated and heat had been restored to the rest of the building.

A shelter that had been set up by the American Red Cross was to be closed as residents were able to return to their apartments.

The county took control of the property last year because of unpaid taxes.

This story was updated to include new information provided by Broome County government.

Contact WNBF News reporter Bob Joseph:

For breaking news and updates on developing stories, follow @BinghamtonNow on Twitter.