A gunman allegedly shot his car windows with high-powered rifles to attract police attention when he opened fire in the heart of Mackay.
Troy Dean Sprigg is accused of stealing the registered guns from relatives and causing the town's CBD to be evacuated after firing at his car and then into the air.
Police allege he took two high-powered rifles - including one fitted with a scope and a tripod - into central Mackay and began firing just after 5pm on Wednesday.
Six shots were fired, with one hitting a building, detectives said on Thursday.
The 29-year-old is now facing five charges and the prospect of jail time if convicted of firearm offences.
He did not apply for bail when he faced Mackay Magistrates Court on Thursday.
It's not believed Sprigg was shooting at anyone and there wasn't any intention to harm, according to Detective Inspector Brendan Smith.
"At this point it appears it was a motivation around mental health issues," he told reporters outside Mackay police station.
"We'll allege it was his intention to bring the police to where his location was."
Officers made an emergency declaration just after 5pm on Wednesday.
People were stuck inside businesses and offices until the man surrendered to police about 8pm.
Sergeant Tasman Place led the police response and said the priority was isolating the alleged gunman.
"After that we engaged in a prolonged negotiation with him and shut down the Mackay CBD," he said.
"We don't like to rush these things, time was on our side."
Police later charged Sprigg 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.
Det Insp Smith said it highlighted the importance of gun owners to properly secure their firearms.
"Any time you take a firearm where it's not meant to be ... the community is at risk," he told reporters.
Sprigg, from Sarina, south of Mackay, was remanded in custody to return to court on June 13.