A record label boss who thought he was Tupac Shakur reincarnated fired repeat shots into the air from the balcony of his penthouse apartment.
Truth or Dare Records CEO Michael Alunomoh, 36, rattled off rounds from imitation guns as he listened to the 90s rap star and has now been ordered to stay in a hospital under the Mental Health Act..
He shouted lyrics from tracks during the incident at Chatham Dockside in April 2020.
The shots from Marina Point East resulted in numerous alls to the police - who dispatched armed officers.
Now, Judge Julian Smith has heard the father-of-one, who is regarded as warm and has a generous spirit, is suffering from psycho-affected disorder.
Barry Kogan, defending, said Alunomoh's mental health had now improved and he "deeply regretted" his behaviour that day.
"He wishes to offer his sincere apologies to all those, particularly the members of the public, who were affected by his actions," he added.
Alunomoh admitted three offences of possessing imitation firearms, including two Eagle, blank-firing 9mm self-loading pistols and a Camp assault rifle intending to cause fear of violence.
He was ordered to be detained under Section 37 of the Mental Health Act.
The court heard how he told police a voice in his head had told him to "disturb the peace" that morning so police would arrest him and give him the treatment he needed.
Three psychiatrists have all agreed he was suffering "a disease of the mind" at the time.
Shortly before the incident, he was listening to Tupac's Hit 'Em Up which included the lines "rab ya Glocks, when you see Tupac. Call the cops, when you see Tupac."
Dr Bernard Chin had revealed that Alunomoh, who claimed to be Tupac's reincarnation, had told him that he took the words as an instruction to "grab his guns and summon police".
Tupac is widely considered one of the most influential rappers of all time, selling 75 million albums by the time of his death at the age of 25.
He was shot in Las Vegas in 1996 after a well-publicised feud with his one-time friend Biggie Smalls, who was shot dead a year later.
Dr Chin added: "I asked him what he did after hearing the lyrics and he told me he fired his guns from the balcony."
When asked whether he thought the song had an 'impact' on Alunomoh's behaviour, the psychiatrist replied: "I think he was inspired by it."
The court heard Alunomoh also made bizarre claims that he was "a king waiting to be crowned" and a scientist with a cure for Covid.
On March 23, 2020, he had been sectioned after police spotted him driving erratically and, having pulled him over, he got out of his car and started eating grass.
But he convinced doctors he was no longer hearing voices and was later released.
The court also heard he had phoned police the night before the gun incident saying "something was wrong" in his head.
Alunomoh told police: "I was shooting. I was not killing anybody. I was just doing my own thing because it's still in my head.
"I kept shooting. Bang, bang, bang bang. Then the police came and I said 'you have to treat me, you have to help me'."
He denied his intention was to scare people, saying: "If it was, I would be shooting, I would be aiming. I was just doing it to the sky and shouting 'Call the police'."