Man charged after Mackay gun drama

A man who took at least two rifles into the heart of Mackay and began shooting into the air will front court after a three-hour lockdown in the Queensland city.

Police made an emergency declaration just after 5pm on Wednesday, after reports a man had opened fire in the CBD.

Businesses and offices in several streets were placed in lockdown, with workers and customers unable to leave until the man surrendered to police about 8pm.

Detectives spent the night trawling the area for evidence while the alleged shooter underwent an assessment in hospital.

A 29-year-old man from Sarina was later charged with going armed to cause fear, dangerous conduct with a weapon, common assault, unlawful possession of a weapon used to commit an indictable offence and authority required to possess explosives.

He's due to face the Mackay Magistrates Court on Thursday, and police say further charges are likely.

Detective Inspector Brendan Smith told reporters the man was carrying at least two guns and fired the shots "to draw attention to himself".

Police haven't said exactly what motivated the man to open fire.